public class DefaultTransactionMessageProducer extends Object implements TransactionMessageProducer
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
DefaultTransactionMessageProducer(String transactionId,
long timeout,
TimeUnit timeoutUnit,
long sequence,
ProducerConfig config,
NameServerConfig nameServerConfig,
ClusterManager clusterManager,
MessageSender messageSender,
MessageProducerInner messageProducerInner) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<SendResult> |
batchSend(List<ProduceMessage> messages) |
List<SendResult> |
batchSend(List<ProduceMessage> messages,
long timeout,
TimeUnit timeoutUnit) |
protected void |
checkPrepare() |
protected void |
checkState() |
void |
commit() |
List<SendResult> |
doBatchSend(List<ProduceMessage> messages,
long timeout,
TimeUnit timeoutUnit) |
protected SendPrepareResult |
doPrepare(PartitionMetadata partition) |
void |
rollback() |
SendResult |
send(ProduceMessage message) |
SendResult |
send(ProduceMessage message,
long timeout,
TimeUnit timeoutUnit) |
public DefaultTransactionMessageProducer(String transactionId, long timeout, TimeUnit timeoutUnit, long sequence, ProducerConfig config, NameServerConfig nameServerConfig, ClusterManager clusterManager, MessageSender messageSender, MessageProducerInner messageProducerInner)
public void commit()
commit 在接口中 TransactionMessageProducerpublic void rollback()
rollback 在接口中 TransactionMessageProducerpublic SendResult send(ProduceMessage message)
send 在接口中 TransactionMessageProducerpublic SendResult send(ProduceMessage message, long timeout, TimeUnit timeoutUnit)
send 在接口中 TransactionMessageProducerpublic List<SendResult> batchSend(List<ProduceMessage> messages)
batchSend 在接口中 TransactionMessageProducerpublic List<SendResult> batchSend(List<ProduceMessage> messages, long timeout, TimeUnit timeoutUnit)
batchSend 在接口中 TransactionMessageProducerpublic List<SendResult> doBatchSend(List<ProduceMessage> messages, long timeout, TimeUnit timeoutUnit)
protected SendPrepareResult doPrepare(PartitionMetadata partition)
protected void checkPrepare()
protected void checkState()
Copyright © 2020 Joyqueue Community. All rights reserved.