Uses of Class
org.apache.pulsar.client.api.transaction.TxnID
Packages that use TxnID
-
Uses of TxnID in org.apache.pulsar.client.api.transaction
Methods in org.apache.pulsar.client.api.transaction that return TxnIDModifier and TypeMethodDescriptionTransaction.getTxnID()Get TxnID of the transaction.TransactionCoordinatorClient.newTransaction()Create a new transaction.TransactionCoordinatorClient.newTransaction(long timeout, TimeUnit unit) Create a new transaction.Methods in org.apache.pulsar.client.api.transaction that return types with arguments of type TxnIDModifier and TypeMethodDescriptionTransactionBufferClient.abortTxnOnSubscription(String topic, String subscription, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark) Abort the transaction associated with the topic subscription.TransactionBufferClient.abortTxnOnTopic(String topic, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark) Abort the transaction associated with the topic.TransactionBufferClient.commitTxnOnSubscription(String topic, String subscription, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark) Commit the transaction associated with the topic subscription.TransactionBufferClient.commitTxnOnTopic(String topic, long txnIdMostBits, long txnIdLeastBits, long lowWaterMark) Commit the transaction associated with the topic.TransactionCoordinatorClient.newTransactionAsync()Create a new transaction asynchronously.TransactionCoordinatorClient.newTransactionAsync(long timeout, TimeUnit unit) Create a new transaction asynchronously.Methods in org.apache.pulsar.client.api.transaction with parameters of type TxnIDModifier and TypeMethodDescriptionvoidAbort txn.TransactionCoordinatorClient.abortAsync(TxnID txnID) Abort txn asynchronously.voidTransactionCoordinatorClient.addPublishPartitionToTxn(TxnID txnID, List<String> partitions) Add publish partition to txn.TransactionCoordinatorClient.addPublishPartitionToTxnAsync(TxnID txnID, List<String> partitions) Add publish partition to txn asynchronously.voidTransactionCoordinatorClient.addSubscriptionToTxn(TxnID txnID, String topic, String subscription) Add ack subscription to txn.TransactionCoordinatorClient.addSubscriptionToTxnAsync(TxnID txnID, String topic, String subscription) Add ack subscription to txn asynchronously.voidCommit txn.TransactionCoordinatorClient.commitAsync(TxnID txnID) Commit txn asynchronously.