public interface Producer
Modifier and Type | Method and Description |
---|---|
static Producer |
get(boolean isLocal) |
static Producer |
get(Properties configuration) |
void |
produceAsync(String topicName,
String key,
Object object,
org.apache.kafka.clients.producer.Callback callback) |
void |
produceFireAndForget(String topicName,
String key,
Object object) |
void |
produceSync(String topicName,
String key,
Object object) |
void |
start(Properties properties) |
void |
stop() |
void start(Properties properties)
void stop()
void produceAsync(String topicName, String key, Object object, org.apache.kafka.clients.producer.Callback callback)
static Producer get(Properties configuration)
static Producer get(boolean isLocal)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.