public interface MessageProducer extends LifeCycle
SendResult send(ProduceMessage message)
SendResult send(ProduceMessage message, long timeout, TimeUnit timeoutUnit)
List<SendResult> batchSend(List<ProduceMessage> messages)
List<SendResult> batchSend(List<ProduceMessage> messages, long timeout, TimeUnit timeoutUnit)
void sendOneway(ProduceMessage message)
void sendOneway(ProduceMessage message, long timeout, TimeUnit timeoutUnit)
void batchSendOneway(List<ProduceMessage> messages)
void batchSendOneway(List<ProduceMessage> messages, long timeout, TimeUnit timeoutUnit)
CompletableFuture<SendResult> sendAsync(ProduceMessage message)
CompletableFuture<SendResult> sendAsync(ProduceMessage message, long timeout, TimeUnit timeoutUnit)
CompletableFuture<List<SendResult>> batchSendAsync(List<ProduceMessage> messages)
CompletableFuture<List<SendResult>> batchSendAsync(List<ProduceMessage> messages, long timeout, TimeUnit timeoutUnit)
TransactionMessageProducer beginTransaction()
TransactionMessageProducer beginTransaction(long timeout, TimeUnit timeoutUnit)
TransactionMessageProducer beginTransaction(String transactionId)
TransactionMessageProducer beginTransaction(String transactionId, long timeout, TimeUnit timeoutUnit)
TopicMetadata getTopicMetadata(String topic)
void addInterceptor(ProducerInterceptor interceptor)
void removeInterceptor(ProducerInterceptor interceptor)
Copyright © 2020 Joyqueue Community. All rights reserved.