public class KafkaPublisher extends Object implements EventService
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_KAFKA_TOPIC
The configuration key controlling the name of the kafka topic.
|
| Constructor and Description |
|---|
KafkaPublisher()
Create a new Kafka Publisher.
|
KafkaPublisher(Producer<String,String> producer)
Create a new Kafka Publisher.
|
KafkaPublisher(Producer<String,String> producer,
String topic)
Create a new Kafka Publisher.
|
public static final String CONFIG_KAFKA_TOPIC
@Inject public KafkaPublisher()
public KafkaPublisher(Producer<String,String> producer)
producer - the producerpublic void emit(Event event)
EventServiceemit in interface EventServiceevent - the event