Class UCentralKafkaProducer
- java.lang.Object
-
- com.facebook.openwifi.cloudsdk.kafka.UCentralKafkaProducer
-
public class UCentralKafkaProducer extends Object
Kafka producer for uCentral.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the producer.voidpublishSystemEvent(String event)Publish a service event.
-
-
-
Constructor Detail
-
UCentralKafkaProducer
public UCentralKafkaProducer(String bootstrapServer, String serviceEventsTopic, String serviceType, String serviceVersion, long serviceId, String serviceKey, String privateEndpoint, String publicEndpoint)
Constructor.- Parameters:
bootstrapServer- the Kafka bootstrap serverserviceEventsTopic- the uCentral service_events topic (required)serviceType- the service nameserviceVersion- the service versionserviceId- the service IDserviceKey- the service keyprivateEndpoint- the private service endpointpublicEndpoint- the public service endpoint
-
-
Method Detail
-
publishSystemEvent
public void publishSystemEvent(String event)
Publish a service event.
-
close
public void close()
Close the producer.
-
-