Package org.apache.bookkeeper.client.api
Interface LastConfirmedAndEntry
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
LastConfirmedAndEntryImpl
public interface LastConfirmedAndEntry extends java.lang.AutoCloseableThis contains LastAddConfirmed entryId and a LedgerEntry wanted to read. It is used for readLastAddConfirmedAndEntry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()LedgerEntrygetEntry()Gets wanted LedgerEntry.longgetLastAddConfirmed()Gets LastAddConfirmed entryId.booleanhasEntry()Whether this entity contains an entry.
-
-
-
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:
closein interfacejava.lang.AutoCloseable
-
-