Class PendingReadOp.SingleLedgerEntryRequest

java.lang.Object
org.apache.bookkeeper.client.ReadOpBase.LedgerEntryRequest
org.apache.bookkeeper.client.PendingReadOp.SingleLedgerEntryRequest
All Implemented Interfaces:
SpeculativeRequestExecutor
Direct Known Subclasses:
PendingReadOp.ParallelReadRequest, PendingReadOp.SequenceReadRequest
Enclosing class:
PendingReadOp

abstract class PendingReadOp.SingleLedgerEntryRequest extends ReadOpBase.LedgerEntryRequest
  • Field Details

  • Constructor Details

    • SingleLedgerEntryRequest

      SingleLedgerEntryRequest(List<BookieId> ensemble, long lId, long eId)
  • Method Details

    • close

      public void close()
      Overrides:
      close in class ReadOpBase.LedgerEntryRequest
    • complete

      boolean complete(int bookieIndex, BookieId host, io.netty.buffer.ByteBuf buffer)
      Complete the read request from host.
      Parameters:
      bookieIndex - bookie index
      host - host that respond the read
      buffer - the data buffer
      Returns:
      return true if we managed to complete the entry; otherwise return false if the read entry is not complete or it is already completed before