接口 TransactionBufferClient
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.util.concurrent.CompletableFuture<TxnID>abortTxnOnSubscription(java.lang.String topic, java.lang.String subscription, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark)Abort the transaction associated with the topic subscription.java.util.concurrent.CompletableFuture<TxnID>abortTxnOnTopic(java.lang.String topic, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark)Abort the transaction associated with the topic.voidclose()java.util.concurrent.CompletableFuture<TxnID>commitTxnOnSubscription(java.lang.String topic, java.lang.String subscription, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark)Commit the transaction associated with the topic subscription.java.util.concurrent.CompletableFuture<TxnID>commitTxnOnTopic(java.lang.String topic, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark)Commit the transaction associated with the topic.
-
-
-
方法详细资料
-
commitTxnOnTopic
java.util.concurrent.CompletableFuture<TxnID> commitTxnOnTopic(java.lang.String topic, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark)
Commit the transaction associated with the topic.- 参数:
topic- topic nametxnIdMostBits- the most bits of txn idtxnIdLeastBits- the least bits of txn idlowWaterMark- the low water mark of this txn;- 返回:
- the future represents the commit result
-
abortTxnOnTopic
java.util.concurrent.CompletableFuture<TxnID> abortTxnOnTopic(java.lang.String topic, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark)
Abort the transaction associated with the topic.- 参数:
topic- topic nametxnIdMostBits- the most bits of txn idtxnIdLeastBits- the least bits of txn idlowWaterMark- the low water mark of this txn- 返回:
- the future represents the abort result
-
commitTxnOnSubscription
java.util.concurrent.CompletableFuture<TxnID> commitTxnOnSubscription(java.lang.String topic, java.lang.String subscription, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark)
Commit the transaction associated with the topic subscription.- 参数:
topic- topic namesubscription- subscription nametxnIdMostBits- the most bits of txn idtxnIdLeastBits- the least bits of txn idlowWaterMark- the low water mark of this txn- 返回:
- the future represents the commit result
-
abortTxnOnSubscription
java.util.concurrent.CompletableFuture<TxnID> abortTxnOnSubscription(java.lang.String topic, java.lang.String subscription, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark)
Abort the transaction associated with the topic subscription.- 参数:
topic- topic namesubscription- subscription nametxnIdMostBits- the most bits of txn idtxnIdLeastBits- the least bits of txn idlowWaterMark- the low water mark of this txn- 返回:
- the future represents the abort result
-
close
void close()
-
-