Interface TransactionEntry

All Superinterfaces:
AutoCloseable, Entry
All Known Implementing Classes:
TransactionEntryImpl

@Beta public interface TransactionEntry extends Entry, AutoCloseable
A class represents an entry appended to a transaction.
  • 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

      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