@Beta public interface TransactionEntry extends Entry, AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the entry to release the resource that it holds.
|
long |
committedAtEntryId()
The entry id that the transaction is committed to.
|
long |
committedAtLedgerId()
The ledger id that the transaction is committed to.
|
Entry |
getEntry()
Returns the entry saved in the
TransactionBuffer. |
int |
numMessageInTxn() |
long |
sequenceId()
The sequence id of this entry in this transaction.
|
org.apache.pulsar.client.api.transaction.TxnID |
txnId()
The transaction id that the entry is appended to.
|
getData, getDataAndRelease, getDataBuffer, getEntryId, getLedgerId, getLength, getPosition, releaseorg.apache.pulsar.client.api.transaction.TxnID txnId()
long sequenceId()
int numMessageInTxn()
long committedAtLedgerId()
long committedAtEntryId()
Entry getEntry()
TransactionBuffer.Entry.void close()
close in interface AutoCloseableCopyright © 2017–2022 Apache Software Foundation. All rights reserved.