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.ResponsebuildReadResponse(io.netty.util.ReferenceCounted data)static BatchedReadEntryProcessorcreate(BookieProtocol.BatchedReadRequest request, BookieRequestHandler requestHandler, BookieRequestProcessor requestProcessor, java.util.concurrent.ExecutorService fenceThreadPool, boolean throttleReadResponses, long maxBatchReadSize)protected io.netty.util.ReferenceCountedreadData()protected voidrecycle()java.lang.StringtoString()-
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:
readDatain classReadEntryProcessor- Throws:
java.lang.Exception
-
buildReadResponse
protected BookieProtocol.Response buildReadResponse(io.netty.util.ReferenceCounted data)
- Overrides:
buildReadResponsein classReadEntryProcessor
-
toString
public java.lang.String toString()
- Overrides:
toStringin classReadEntryProcessor
-
recycle
protected void recycle()
- Overrides:
recyclein classReadEntryProcessor
-
-