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 void
close()
static LastConfirmedAndEntryImpl
create(long lac, LedgerEntry entry)
LedgerEntry
getEntry()
Gets wanted LedgerEntry.long
getLastAddConfirmed()
Gets LastAddConfirmed entryId.boolean
hasEntry()
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:
getLastAddConfirmed
in interfaceLastConfirmedAndEntry
- Returns:
- the LastAddConfirmed
-
hasEntry
public boolean hasEntry()
Whether this entity contains an entry.- Specified by:
hasEntry
in interfaceLastConfirmedAndEntry
- Returns:
- true if Entry not null
-
getEntry
public LedgerEntry getEntry()
Gets wanted LedgerEntry.- Specified by:
getEntry
in interfaceLastConfirmedAndEntry
- Returns:
- the LedgerEntry
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceLastConfirmedAndEntry
-
-