Package org.apache.bookkeeper.client
Class ReadOpBase
java.lang.Object
org.apache.bookkeeper.client.ReadOpBase
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
BatchedReadOp,PendingReadOp
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected ClientContextprotected final AtomicBoolean(package private) final longprotected final CompletableFuture<LedgerEntries>protected final BitSetprotected final boolean(package private) LedgerHandle(package private) longprotected longprotected final intprotected ScheduledFuture<?>protected final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReadOpBase(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, boolean isRecoveryRead) -
Method Summary
Modifier and TypeMethodDescription(package private) voidprotected voidcancelSpeculativeTask(boolean mayInterruptIfRunning) (package private) CompletableFuture<LedgerEntries>future()protected LedgerMetadata(package private) abstract voidinitiate()voidrun()voidsubmit()protected abstract voidsubmitCallback(int code)
-
Field Details
-
speculativeTask
-
future
-
heardFromHosts
-
heardFromHostsBitSet
-
sentToHosts
-
lh
LedgerHandle lh -
clientCtx
-
startEntryId
protected final long startEntryId -
requestTimeNanos
protected long requestTimeNanos -
requiredBookiesMissingEntryForRecovery
protected final int requiredBookiesMissingEntryForRecovery -
isRecoveryRead
protected final boolean isRecoveryRead -
complete
-
allowFailFast
protected boolean allowFailFast -
numPendingEntries
long numPendingEntries -
endEntryId
final long endEntryId
-
-
Constructor Details
-
ReadOpBase
protected ReadOpBase(LedgerHandle lh, ClientContext clientCtx, long startEntryId, long endEntryId, boolean isRecoveryRead)
-
-
Method Details
-
getLedgerMetadata
-
cancelSpeculativeTask
protected void cancelSpeculativeTask(boolean mayInterruptIfRunning) -
getSpeculativeTask
-
future
CompletableFuture<LedgerEntries> future() -
allowFailFastOnUnwritableChannel
void allowFailFastOnUnwritableChannel() -
submit
public void submit() -
run
public void run() -
initiate
abstract void initiate() -
submitCallback
protected abstract void submitCallback(int code)
-