Class BookieProtocol.BatchedReadResponse

java.lang.Object
org.apache.bookkeeper.proto.BookieProtocol.Response
org.apache.bookkeeper.proto.BookieProtocol.BatchedReadResponse
All Implemented Interfaces:
io.netty.util.ReferenceCounted
Enclosing interface:
BookieProtocol

public static class BookieProtocol.BatchedReadResponse extends BookieProtocol.Response implements io.netty.util.ReferenceCounted
The response for batched read. The ledger_id and entry_id will be used as start_ledger_id and start_entry_id. And all the returned data is from one ledger.
  • Field Details

    • requestId

      final long requestId
    • data

      final ByteBufList data
  • Constructor Details

    • BatchedReadResponse

      BatchedReadResponse(byte protocolVersion, int errorCode, long ledgerId, long entryId, long requestId)
    • BatchedReadResponse

      BatchedReadResponse(byte protocolVersion, int errorCode, long ledgerId, long entryId, long requestId, ByteBufList data)
  • Method Details

    • getData

      ByteBufList getData()
    • getRequestId

      long getRequestId()
    • refCnt

      public int refCnt()
      Specified by:
      refCnt in interface io.netty.util.ReferenceCounted
    • retain

      public io.netty.util.ReferenceCounted retain()
      Specified by:
      retain in interface io.netty.util.ReferenceCounted
    • retain

      public io.netty.util.ReferenceCounted retain(int increment)
      Specified by:
      retain in interface io.netty.util.ReferenceCounted
    • touch

      public io.netty.util.ReferenceCounted touch()
      Specified by:
      touch in interface io.netty.util.ReferenceCounted
    • touch

      public io.netty.util.ReferenceCounted touch(Object hint)
      Specified by:
      touch in interface io.netty.util.ReferenceCounted
    • release

      public boolean release()
      Specified by:
      release in interface io.netty.util.ReferenceCounted
      Overrides:
      release in class BookieProtocol.Response
    • release

      public boolean release(int decrement)
      Specified by:
      release in interface io.netty.util.ReferenceCounted