Package org.apache.bookkeeper.client.api
Interface LastConfirmedAndEntry
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
LastConfirmedAndEntryImpl
This contains LastAddConfirmed entryId and a LedgerEntry wanted to read.
It is used for readLastAddConfirmedAndEntry.
-
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:
closein interfaceAutoCloseable
-