Package org.apache.bookkeeper.client
Class TryReadLastConfirmedOp
- java.lang.Object
- 
- org.apache.bookkeeper.client.TryReadLastConfirmedOp
 
- 
- All Implemented Interfaces:
- BookkeeperInternalCallbacks.ReadEntryCallback
 
 class TryReadLastConfirmedOp extends java.lang.Object implements BookkeeperInternalCallbacks.ReadEntryCallback This op is try to read last confirmed without involving quorum coverage checking. UseReadLastConfirmedOpif you need quorum coverage checking.
- 
- 
Field SummaryFields Modifier and Type Field Description (package private) BookieClientbookieClient(package private) ReadLastConfirmedOp.LastConfirmedDataCallbackcb(package private) booleancompleted(package private) java.util.List<BookieId>currentEnsemble(package private) booleanhasValidResponse(package private) LedgerHandlelh(package private) static org.slf4j.LoggerLOG(package private) DigestManager.RecoveryDatamaxRecoveredData(package private) intnumResponsesPending
 - 
Constructor SummaryConstructors Constructor Description TryReadLastConfirmedOp(LedgerHandle lh, BookieClient bookieClient, java.util.List<BookieId> ensemble, ReadLastConfirmedOp.LastConfirmedDataCallback cb, long lac)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitiate()voidreadEntryComplete(int rc, long ledgerId, long entryId, io.netty.buffer.ByteBuf buffer, java.lang.Object ctx)
 
- 
- 
- 
Field Detail- 
LOGstatic final org.slf4j.Logger LOG 
 - 
lhfinal LedgerHandle lh 
 - 
bookieClientfinal BookieClient bookieClient 
 - 
cbfinal ReadLastConfirmedOp.LastConfirmedDataCallback cb 
 - 
numResponsesPendingint numResponsesPending 
 - 
hasValidResponsevolatile boolean hasValidResponse 
 - 
completedvolatile boolean completed 
 - 
maxRecoveredDataDigestManager.RecoveryData maxRecoveredData 
 - 
currentEnsemblefinal java.util.List<BookieId> currentEnsemble 
 
- 
 - 
Constructor Detail- 
TryReadLastConfirmedOpTryReadLastConfirmedOp(LedgerHandle lh, BookieClient bookieClient, java.util.List<BookieId> ensemble, ReadLastConfirmedOp.LastConfirmedDataCallback cb, long lac) 
 
- 
 - 
Method Detail- 
initiatepublic void initiate() 
 - 
readEntryCompletepublic void readEntryComplete(int rc, long ledgerId, long entryId, io.netty.buffer.ByteBuf buffer, java.lang.Object ctx)- Specified by:
- readEntryCompletein interface- BookkeeperInternalCallbacks.ReadEntryCallback
 
 
- 
 
-