类 TransactionImpl
java.lang.Object
org.apache.pulsar.client.impl.transaction.TransactionImpl
- 所有已实现的接口:
io.netty.util.TimerTask,Transaction
The default implementation of
Transaction.
All the error handling and retry logic are handled by this class. The original pulsar client doesn't handle any transaction logic. It is only responsible for sending the messages and acknowledgements carrying the transaction id and retrying on failures. This decouples the transactional operations from non-transactional operations as much as possible.
-
嵌套类概要
从接口继承的嵌套类/接口 org.apache.pulsar.client.api.transaction.Transaction
Transaction.State -
方法概要
修饰符和类型方法说明abort()<T> booleancheckIfOpen(CompletableFuture<T> completableFuture) commit()getState()getTxnID()registerAckedTopic(String topic, String subscription) voidregisterAckOp(CompletableFuture<Void> newAckFuture) registerProducedTopic(String topic) voidregisterSendOp(CompletableFuture<MessageId> newSendFuture) voidrun(io.netty.util.Timeout timeout)
-
方法详细资料
-
run
- 指定者:
run在接口中io.netty.util.TimerTask- 抛出:
Exception
-
registerProducedTopic
-
registerSendOp
-
registerAckedTopic
-
registerAckOp
-
commit
- 指定者:
commit在接口中Transaction
-
abort
- 指定者:
abort在接口中Transaction
-
getTxnID
- 指定者:
getTxnID在接口中Transaction
-
getState
- 指定者:
getState在接口中Transaction
-
checkIfOpen
-