K - key type to sendM - message type to sendpublic interface TopicProducer<K,M> extends Closeable
Producer, including logic to instantiate the
object. This is a wrapper that can be serialized and re-create the Producer
remotely.| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
String |
getTopic() |
String |
getUpdateBroker() |
void |
send(K key,
M message) |
String getUpdateBroker()
String getTopic()
void send(K key, M message)
key - key to send to the topicmessage - message to send with key to the topicdefault void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2014–2018. All rights reserved.