public interface TransactionCursor
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
abortTxn(org.apache.pulsar.client.api.transaction.TxnID txnID)
Abort transaction.
|
CompletableFuture<Void> |
commitTxn(long committedLedgerId,
long committedEntryId,
org.apache.pulsar.client.api.transaction.TxnID txnID,
Position position)
Commit transaction.
|
CompletableFuture<Set<org.apache.pulsar.client.api.transaction.TxnID>> |
getAllTxnsCommittedAtLedger(long ledgerId)
Get all the transaction id on the specified ledger.
|
CompletableFuture<TransactionMeta> |
getTxnMeta(org.apache.pulsar.client.api.transaction.TxnID txnID,
boolean createIfNotExist)
Get the specified transaction meta.
|
CompletableFuture<Void> |
removeTxnsCommittedAtLedger(long ledgerId)
Remove the transactions on the specified ledger.
|
CompletableFuture<TransactionMeta> getTxnMeta(org.apache.pulsar.client.api.transaction.TxnID txnID, boolean createIfNotExist)
txnID - createIfNotExist - CompletableFuture<Void> commitTxn(long committedLedgerId, long committedEntryId, org.apache.pulsar.client.api.transaction.TxnID txnID, Position position)
committedLedgerId - the ledger which txn committed at.committedEntryId - the entry which txn committed at.txnID - the id which txn committed.position - the commit position at transaction log.CompletableFuture<Void> abortTxn(org.apache.pulsar.client.api.transaction.TxnID txnID)
txnID - aborted transaction id.CompletableFuture<Set<org.apache.pulsar.client.api.transaction.TxnID>> getAllTxnsCommittedAtLedger(long ledgerId)
ledgerId - the transaction committed ledger idCompletableFuture<Void> removeTxnsCommittedAtLedger(long ledgerId)
ledgerId - the remove transaction idCopyright © 2017–2022 Apache Software Foundation. All rights reserved.