Class LastConfirmedAndEntryImpl
java.lang.Object
org.apache.bookkeeper.client.impl.LastConfirmedAndEntryImpl
- All Implemented Interfaces:
AutoCloseable,LastConfirmedAndEntry
This contains LastAddConfirmed entryId and a LedgerEntry wanted to read.
It is used for readLastAddConfirmedAndEntry.
-
Constructor Summary
ConstructorsConstructorDescriptionLastConfirmedAndEntryImpl(io.netty.util.Recycler.Handle<LastConfirmedAndEntryImpl> handle) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static LastConfirmedAndEntryImplcreate(long lac, LedgerEntry entry) getEntry()Gets wanted LedgerEntry.longGets LastAddConfirmed entryId.booleanhasEntry()Whether this entity contains an entry.
-
Constructor Details
-
LastConfirmedAndEntryImpl
-
-
Method Details
-
create
-
getLastAddConfirmed
public long getLastAddConfirmed()Gets LastAddConfirmed entryId.- Specified by:
getLastAddConfirmedin interfaceLastConfirmedAndEntry- Returns:
- the LastAddConfirmed
-
hasEntry
public boolean hasEntry()Whether this entity contains an entry.- Specified by:
hasEntryin interfaceLastConfirmedAndEntry- Returns:
- true if Entry not null
-
getEntry
Gets wanted LedgerEntry.- Specified by:
getEntryin interfaceLastConfirmedAndEntry- Returns:
- the LedgerEntry
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceLastConfirmedAndEntry
-