Package org.apache.bookkeeper.client.api
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
LedgerEntry
getEntry()
Gets wanted LedgerEntry.long
getLastAddConfirmed()
Gets LastAddConfirmed entryId.boolean
hasEntry()
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:
close
in interfacejava.lang.AutoCloseable
-
-