Package org.apache.bookkeeper.proto
Class ReadEntryProcessor
- java.lang.Object
-
- org.apache.bookkeeper.proto.PacketProcessorBase<BookieProtocol.ReadRequest>
-
- org.apache.bookkeeper.proto.ReadEntryProcessor
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
BatchedReadEntryProcessor
class ReadEntryProcessor extends PacketProcessorBase<BookieProtocol.ReadRequest>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.ExecutorService
fenceThreadPool
protected boolean
throttleReadResponses
-
Fields inherited from class org.apache.bookkeeper.proto.PacketProcessorBase
enqueueNanos, request, requestHandler, requestProcessor
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReadEntryProcessor()
-
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 ReadEntryProcessor
create(BookieProtocol.ReadRequest request, BookieRequestHandler requestHandler, BookieRequestProcessor requestProcessor, java.util.concurrent.ExecutorService fenceThreadPool, boolean throttleReadResponses)
protected void
processPacket()
protected io.netty.util.ReferenceCounted
readData()
(package private) void
recycle()
java.lang.String
toString()
-
Methods inherited from class org.apache.bookkeeper.proto.PacketProcessorBase
init, isVersionCompatible, reset, run, sendReadReqResponse, sendResponse, sendResponseAndWait, sendWriteReqResponse
-
-
-
-
Method Detail
-
create
public static ReadEntryProcessor create(BookieProtocol.ReadRequest request, BookieRequestHandler requestHandler, BookieRequestProcessor requestProcessor, java.util.concurrent.ExecutorService fenceThreadPool, boolean throttleReadResponses)
-
processPacket
protected void processPacket()
- Specified by:
processPacket
in classPacketProcessorBase<BookieProtocol.ReadRequest>
-
readData
protected io.netty.util.ReferenceCounted readData() throws java.lang.Exception
- Throws:
java.lang.Exception
-
buildReadResponse
protected BookieProtocol.Response buildReadResponse(io.netty.util.ReferenceCounted data)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
recycle
void recycle()
-
-