Class LastConfirmedAndEntryImpl
- java.lang.Object
-
- org.apache.bookkeeper.client.impl.LastConfirmedAndEntryImpl
-
- All Implemented Interfaces:
java.lang.AutoCloseable,LastConfirmedAndEntry
public class LastConfirmedAndEntryImpl extends java.lang.Object implements LastConfirmedAndEntry
This contains LastAddConfirmed entryId and a LedgerEntry wanted to read. It is used for readLastAddConfirmedAndEntry.
-
-
Constructor Summary
Constructors Constructor Description LastConfirmedAndEntryImpl(io.netty.util.Recycler.Handle<LastConfirmedAndEntryImpl> handle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static LastConfirmedAndEntryImplcreate(long lac, LedgerEntry entry)LedgerEntrygetEntry()Gets wanted LedgerEntry.longgetLastAddConfirmed()Gets LastAddConfirmed entryId.booleanhasEntry()Whether this entity contains an entry.
-
-
-
Constructor Detail
-
LastConfirmedAndEntryImpl
public LastConfirmedAndEntryImpl(io.netty.util.Recycler.Handle<LastConfirmedAndEntryImpl> handle)
-
-
Method Detail
-
create
public static LastConfirmedAndEntryImpl create(long lac, LedgerEntry entry)
-
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
public LedgerEntry getEntry()
Gets wanted LedgerEntry.- Specified by:
getEntryin interfaceLastConfirmedAndEntry- Returns:
- the LedgerEntry
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceLastConfirmedAndEntry
-
-