Package org.apache.bookkeeper.client
Class ReadLastConfirmedOp
java.lang.Object
org.apache.bookkeeper.client.ReadLastConfirmedOp
- All Implemented Interfaces:
BookkeeperInternalCallbacks.ReadEntryCallback
This class encapsulated the read last confirmed operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfaceWrapper to get all recovered data from the request. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReadLastConfirmedOp(BookieClient bookieClient, DistributionSchedule schedule, DigestManager digestManager, long ledgerId, List<BookieId> ensemble, byte[] ledgerKey, ReadLastConfirmedOp.LastConfirmedDataCallback cb) -
Method Summary
Modifier and TypeMethodDescription(package private) intvoidinitiate()voidvoidreadEntryComplete(int rc, long ledgerId, long entryId, io.netty.buffer.ByteBuf buffer, Object ctx)
-
Field Details
-
LOG
static final org.slf4j.Logger LOG
-
-
Constructor Details
-
ReadLastConfirmedOp
public ReadLastConfirmedOp(BookieClient bookieClient, DistributionSchedule schedule, DigestManager digestManager, long ledgerId, List<BookieId> ensemble, byte[] ledgerKey, ReadLastConfirmedOp.LastConfirmedDataCallback cb)
-
-
Method Details
-
initiate
public void initiate() -
initiateWithFencing
public void initiateWithFencing() -
readEntryComplete
public void readEntryComplete(int rc, long ledgerId, long entryId, io.netty.buffer.ByteBuf buffer, Object ctx) - Specified by:
readEntryCompletein interfaceBookkeeperInternalCallbacks.ReadEntryCallback
-
getNumResponsesPending
int getNumResponsesPending()
-