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.AutoCloseable
    A class represents an entry appended to a transaction.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
      org.apache.bookkeeper.mledger.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.
      • Methods inherited from interface org.apache.bookkeeper.mledger.Entry

        getData, getDataAndRelease, getDataBuffer, getEntryId, getLedgerId, getLength, getPosition, release
    • 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 the TransactionBuffer.
        Returns:
        the Entry.
      • close

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