Class ReadOpBase

java.lang.Object
org.apache.bookkeeper.client.ReadOpBase
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
BatchedReadOp, PendingReadOp

public abstract class ReadOpBase extends Object implements Runnable
  • Field Details

    • speculativeTask

      protected ScheduledFuture<?> speculativeTask
    • future

      protected final CompletableFuture<LedgerEntries> future
    • heardFromHosts

      protected final Set<BookieId> heardFromHosts
    • heardFromHostsBitSet

      protected final BitSet heardFromHostsBitSet
    • sentToHosts

      protected final Set<BookieId> sentToHosts
    • lh

    • clientCtx

      protected ClientContext clientCtx
    • startEntryId

      protected final long startEntryId
    • requestTimeNanos

      protected long requestTimeNanos
    • requiredBookiesMissingEntryForRecovery

      protected final int requiredBookiesMissingEntryForRecovery
    • isRecoveryRead

      protected final boolean isRecoveryRead
    • complete

      protected final AtomicBoolean 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

      protected LedgerMetadata getLedgerMetadata()
    • cancelSpeculativeTask

      protected void cancelSpeculativeTask(boolean mayInterruptIfRunning)
    • getSpeculativeTask

      public ScheduledFuture<?> getSpeculativeTask()
    • future

    • allowFailFastOnUnwritableChannel

      void allowFailFastOnUnwritableChannel()
    • submit

      public void submit()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • initiate

      abstract void initiate()
    • submitCallback

      protected abstract void submitCallback(int code)