Package org.apache.bookkeeper.client
Class ListenerBasedPendingReadOp
java.lang.Object
org.apache.bookkeeper.client.ReadOpBase
org.apache.bookkeeper.client.PendingReadOp
org.apache.bookkeeper.client.ListenerBasedPendingReadOp
- All Implemented Interfaces:
Runnable,BookkeeperInternalCallbacks.ReadEntryCallback
- Direct Known Subclasses:
LedgerRecoveryOp.RecoveryReadOp
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.bookkeeper.client.PendingReadOp
PendingReadOp.ParallelReadRequest, PendingReadOp.SequenceReadRequest, PendingReadOp.SingleLedgerEntryRequestNested classes/interfaces inherited from class org.apache.bookkeeper.client.ReadOpBase
ReadOpBase.LedgerEntryRequest, ReadOpBase.ReadContext -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Object(package private) final BookkeeperInternalCallbacks.ReadEntryListenerFields inherited from class org.apache.bookkeeper.client.PendingReadOp
parallelRead, seqFields inherited from class org.apache.bookkeeper.client.ReadOpBase
allowFailFast, clientCtx, complete, endEntryId, future, heardFromHosts, heardFromHostsBitSet, isRecoveryRead, lh, numPendingEntries, requestTimeNanos, requiredBookiesMissingEntryForRecovery, sentToHosts, speculativeTask, startEntryId -
Constructor Summary
ConstructorsConstructorDescriptionListenerBasedPendingReadOp(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, BookkeeperInternalCallbacks.ReadEntryListener listener, Object ctx, boolean isRecoveryRead) -
Method Summary
Methods inherited from class org.apache.bookkeeper.client.PendingReadOp
initiate, parallelRead, readEntryComplete, sendReadToMethods inherited from class org.apache.bookkeeper.client.ReadOpBase
allowFailFastOnUnwritableChannel, cancelSpeculativeTask, future, getLedgerMetadata, getSpeculativeTask, run, submit
-
Field Details
-
listener
-
ctx
-
-
Constructor Details
-
ListenerBasedPendingReadOp
ListenerBasedPendingReadOp(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, BookkeeperInternalCallbacks.ReadEntryListener listener, Object ctx, boolean isRecoveryRead)
-
-
Method Details
-
submitCallback
protected void submitCallback(int code) - Overrides:
submitCallbackin classPendingReadOp
-