Package org.apache.bookkeeper.proto
Class BatchedReadEntryProcessor
- java.lang.Object
-
- org.apache.bookkeeper.proto.PacketProcessorBase<BookieProtocol.ReadRequest>
-
- org.apache.bookkeeper.proto.ReadEntryProcessor
-
- org.apache.bookkeeper.proto.BatchedReadEntryProcessor
-
- All Implemented Interfaces:
java.lang.Runnable
public class BatchedReadEntryProcessor extends ReadEntryProcessor
-
-
Field Summary
-
Fields inherited from class org.apache.bookkeeper.proto.ReadEntryProcessor
fenceThreadPool, throttleReadResponses
-
Fields inherited from class org.apache.bookkeeper.proto.PacketProcessorBase
enqueueNanos, request, requestHandler, requestProcessor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BookieProtocol.Response
buildReadResponse(io.netty.util.ReferenceCounted data)
static BatchedReadEntryProcessor
create(BookieProtocol.BatchedReadRequest request, BookieRequestHandler requestHandler, BookieRequestProcessor requestProcessor, java.util.concurrent.ExecutorService fenceThreadPool, boolean throttleReadResponses, long maxBatchReadSize)
protected io.netty.util.ReferenceCounted
readData()
protected void
recycle()
java.lang.String
toString()
-
Methods inherited from class org.apache.bookkeeper.proto.ReadEntryProcessor
create, processPacket
-
Methods inherited from class org.apache.bookkeeper.proto.PacketProcessorBase
init, isVersionCompatible, reset, run, sendReadReqResponse, sendResponse, sendResponseAndWait, sendWriteReqResponse
-
-
-
-
Method Detail
-
create
public static BatchedReadEntryProcessor create(BookieProtocol.BatchedReadRequest request, BookieRequestHandler requestHandler, BookieRequestProcessor requestProcessor, java.util.concurrent.ExecutorService fenceThreadPool, boolean throttleReadResponses, long maxBatchReadSize)
-
readData
protected io.netty.util.ReferenceCounted readData() throws java.lang.Exception
- Overrides:
readData
in classReadEntryProcessor
- Throws:
java.lang.Exception
-
buildReadResponse
protected BookieProtocol.Response buildReadResponse(io.netty.util.ReferenceCounted data)
- Overrides:
buildReadResponse
in classReadEntryProcessor
-
toString
public java.lang.String toString()
- Overrides:
toString
in classReadEntryProcessor
-
recycle
protected void recycle()
- Overrides:
recycle
in classReadEntryProcessor
-
-