Interface TransactionEntry
-
- All Superinterfaces:
java.lang.AutoCloseable,org.apache.bookkeeper.mledger.Entry
- All Known Implementing Classes:
TransactionEntryImpl
@Beta public interface TransactionEntry extends org.apache.bookkeeper.mledger.Entry, java.lang.AutoCloseableA class represents an entry appended to a transaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the entry to release the resource that it holds.longcommittedAtEntryId()The entry id that the transaction is committed to.longcommittedAtLedgerId()The ledger id that the transaction is committed to.org.apache.bookkeeper.mledger.EntrygetEntry()Returns the entry saved in theTransactionBuffer.intnumMessageInTxn()longsequenceId()The sequence id of this entry in this transaction.org.apache.pulsar.client.api.transaction.TxnIDtxnId()The transaction id that the entry is appended to.
-
-
-
Method Detail
-
txnId
org.apache.pulsar.client.api.transaction.TxnID txnId()
The transaction id that the entry is appended to.- Returns:
- the transaction id
-
sequenceId
long sequenceId()
The sequence id of this entry in this transaction.- Returns:
- the sequence id
-
numMessageInTxn
int numMessageInTxn()
-
committedAtLedgerId
long committedAtLedgerId()
The ledger id that the transaction is committed to.- Returns:
- the ledger id that the transaction is committed to.
-
committedAtEntryId
long committedAtEntryId()
The entry id that the transaction is committed to.- Returns:
- the entry id that the transaction is committed to.
-
getEntry
org.apache.bookkeeper.mledger.Entry getEntry()
Returns the entry saved in theTransactionBuffer.- Returns:
- the
Entry.
-
close
void close()
Close the entry to release the resource that it holds.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-