Interface TransactionEntry

All Superinterfaces:
AutoCloseable, org.apache.bookkeeper.mledger.Entry
All Known Implementing Classes:
TransactionEntryImpl

@Beta public interface TransactionEntry extends org.apache.bookkeeper.mledger.Entry, AutoCloseable
A class represents an entry appended to a transaction.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close the entry to release the resource that it holds.
    long
    The entry id that the transaction is committed to.
    long
    The ledger id that the transaction is committed to.
    org.apache.bookkeeper.mledger.Entry
    Returns the entry saved in the TransactionBuffer.
    int
     
    long
    The sequence id of this entry in this transaction.
    org.apache.pulsar.client.api.transaction.TxnID
    The transaction id that the entry is appended to.

    Methods inherited from interface org.apache.bookkeeper.mledger.Entry

    getData, getDataAndRelease, getDataBuffer, getEntryId, getLedgerId, getLength, getPosition, release
  • Method Details

    • 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 the TransactionBuffer.
      Returns:
      the Entry.
    • close

      void close()
      Close the entry to release the resource that it holds.
      Specified by:
      close in interface AutoCloseable