Interface LastConfirmedAndEntry

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
LastConfirmedAndEntryImpl

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

    Modifier and Type
    Method
    Description
    void
    Gets wanted LedgerEntry.
    long
    Gets LastAddConfirmed entryId.
    boolean
    Whether this entity contains an entry.
  • Method Details

    • 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 AutoCloseable