Package org.apache.bookkeeper.client
Class ReadLastConfirmedOp
- java.lang.Object
-
- org.apache.bookkeeper.client.ReadLastConfirmedOp
-
- All Implemented Interfaces:
BookkeeperInternalCallbacks.ReadEntryCallback
class ReadLastConfirmedOp extends java.lang.Object implements BookkeeperInternalCallbacks.ReadEntryCallback
This class encapsulated the read last confirmed operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interfaceReadLastConfirmedOp.LastConfirmedDataCallbackWrapper to get all recovered data from the request.
-
Field Summary
Fields Modifier and Type Field Description (package private) static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description ReadLastConfirmedOp(BookieClient bookieClient, DistributionSchedule schedule, DigestManager digestManager, long ledgerId, java.util.List<BookieId> ensemble, byte[] ledgerKey, ReadLastConfirmedOp.LastConfirmedDataCallback cb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intgetNumResponsesPending()voidinitiate()voidinitiateWithFencing()voidreadEntryComplete(int rc, long ledgerId, long entryId, io.netty.buffer.ByteBuf buffer, java.lang.Object ctx)
-
-
-
Constructor Detail
-
ReadLastConfirmedOp
public ReadLastConfirmedOp(BookieClient bookieClient, DistributionSchedule schedule, DigestManager digestManager, long ledgerId, java.util.List<BookieId> ensemble, byte[] ledgerKey, ReadLastConfirmedOp.LastConfirmedDataCallback cb)
-
-
Method Detail
-
initiate
public void initiate()
-
initiateWithFencing
public void initiateWithFencing()
-
readEntryComplete
public void readEntryComplete(int rc, long ledgerId, long entryId, io.netty.buffer.ByteBuf buffer, java.lang.Object ctx)- Specified by:
readEntryCompletein interfaceBookkeeperInternalCallbacks.ReadEntryCallback
-
getNumResponsesPending
int getNumResponsesPending()
-
-