Interface LastConfirmedAndEntry

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    LastConfirmedAndEntryImpl

    public interface LastConfirmedAndEntry
    extends java.lang.AutoCloseable
    This contains LastAddConfirmed entryId and a LedgerEntry wanted to read. It is used for readLastAddConfirmedAndEntry.
    • Method Detail

      • getLastAddConfirmed

        long getLastAddConfirmed()
        Gets LastAddConfirmed entryId.
        Returns:
        the LastAddConfirmed
      • hasEntry

        boolean hasEntry()
        Whether this entity contains an entry.
        Returns:
        true if Entry not null
      • getEntry

        LedgerEntry getEntry()
        Gets wanted LedgerEntry.
        Returns:
        the LedgerEntry
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable