public class MessageProducerWrapper extends Service implements MessageProducer
Service.Election, Service.ElectionListenerActivity.ServiceState| 构造器和说明 |
|---|
MessageProducerWrapper(ClusterManager clusterManager,
ProducerClientManager producerClientManager,
MessageProducer delegate) |
getServiceState, isReady, isStarted, isStopped, start, stop, stop, validate, willStopafterStart, afterStop, await, beforeStart, beforeStop, convert, getReadLock, getWriteLock, startErrorpublic MessageProducerWrapper(ClusterManager clusterManager, ProducerClientManager producerClientManager, MessageProducer delegate)
public SendResult send(ProduceMessage message)
send 在接口中 MessageProducerpublic SendResult send(ProduceMessage message, long timeout, TimeUnit timeoutUnit)
send 在接口中 MessageProducerpublic List<SendResult> batchSend(List<ProduceMessage> messages)
batchSend 在接口中 MessageProducerpublic List<SendResult> batchSend(List<ProduceMessage> messages, long timeout, TimeUnit timeoutUnit)
batchSend 在接口中 MessageProducerpublic void sendOneway(ProduceMessage message)
sendOneway 在接口中 MessageProducerpublic void sendOneway(ProduceMessage message, long timeout, TimeUnit timeoutUnit)
sendOneway 在接口中 MessageProducerpublic void batchSendOneway(List<ProduceMessage> messages)
batchSendOneway 在接口中 MessageProducerpublic void batchSendOneway(List<ProduceMessage> messages, long timeout, TimeUnit timeoutUnit)
batchSendOneway 在接口中 MessageProducerpublic CompletableFuture<SendResult> sendAsync(ProduceMessage message)
sendAsync 在接口中 MessageProducerpublic CompletableFuture<SendResult> sendAsync(ProduceMessage message, long timeout, TimeUnit timeoutUnit)
sendAsync 在接口中 MessageProducerpublic CompletableFuture<List<SendResult>> batchSendAsync(List<ProduceMessage> messages)
batchSendAsync 在接口中 MessageProducerpublic CompletableFuture<List<SendResult>> batchSendAsync(List<ProduceMessage> messages, long timeout, TimeUnit timeoutUnit)
batchSendAsync 在接口中 MessageProducerpublic TransactionMessageProducer beginTransaction()
beginTransaction 在接口中 MessageProducerpublic TransactionMessageProducer beginTransaction(long timeout, TimeUnit timeoutUnit)
beginTransaction 在接口中 MessageProducerpublic TransactionMessageProducer beginTransaction(String transactionId)
beginTransaction 在接口中 MessageProducerpublic TransactionMessageProducer beginTransaction(String transactionId, long timeout, TimeUnit timeoutUnit)
beginTransaction 在接口中 MessageProducerpublic TopicMetadata getTopicMetadata(String topic)
getTopicMetadata 在接口中 MessageProducerpublic void addInterceptor(ProducerInterceptor interceptor)
addInterceptor 在接口中 MessageProducerpublic void removeInterceptor(ProducerInterceptor interceptor)
removeInterceptor 在接口中 MessageProducerCopyright © 2020 Joyqueue Community. All rights reserved.