Package org.apache.bookkeeper.proto
Class WriteEntryProcessor
- java.lang.Object
-
- org.apache.bookkeeper.proto.PacketProcessorBase<BookieProtocol.ParsedAddRequest>
-
- org.apache.bookkeeper.proto.WriteEntryProcessor
-
- All Implemented Interfaces:
java.lang.Runnable
,BookkeeperInternalCallbacks.WriteCallback
class WriteEntryProcessor extends PacketProcessorBase<BookieProtocol.ParsedAddRequest> implements BookkeeperInternalCallbacks.WriteCallback
Processes add entry requests.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long
startTimeNanos
-
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 static WriteEntryProcessor
create(BookieProtocol.ParsedAddRequest request, BookieRequestHandler requestHandler, BookieRequestProcessor requestProcessor)
protected void
processPacket()
(package private) void
recycle()
protected void
reset()
java.lang.String
toString()
void
writeComplete(int rc, long ledgerId, long entryId, BookieId addr, java.lang.Object ctx)
-
Methods inherited from class org.apache.bookkeeper.proto.PacketProcessorBase
init, isVersionCompatible, run, sendReadReqResponse, sendResponse, sendResponseAndWait, sendWriteReqResponse
-
-
-
-
Method Detail
-
reset
protected void reset()
- Overrides:
reset
in classPacketProcessorBase<BookieProtocol.ParsedAddRequest>
-
create
public static WriteEntryProcessor create(BookieProtocol.ParsedAddRequest request, BookieRequestHandler requestHandler, BookieRequestProcessor requestProcessor)
-
processPacket
protected void processPacket()
- Specified by:
processPacket
in classPacketProcessorBase<BookieProtocol.ParsedAddRequest>
-
writeComplete
public void writeComplete(int rc, long ledgerId, long entryId, BookieId addr, java.lang.Object ctx)
- Specified by:
writeComplete
in interfaceBookkeeperInternalCallbacks.WriteCallback
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
recycle
void recycle()
-
-