Package org.apache.bookkeeper.proto
Class BookieProtocol.BatchedReadRequest
java.lang.Object
org.apache.bookkeeper.proto.BookieProtocol.Request
org.apache.bookkeeper.proto.BookieProtocol.ReadRequest
org.apache.bookkeeper.proto.BookieProtocol.BatchedReadRequest
- Enclosing interface:
- BookieProtocol
The request for reading data with batch optimization.
The ledger_id and entry_id will be used as start_ledger_id and start_entry_id.
And the batch read operation can only happen on one ledger.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) long(package private) longFields inherited from class org.apache.bookkeeper.proto.BookieProtocol.Request
entryId, flags, ledgerId, masterKey, opCode, protocolVersion -
Method Summary
Modifier and TypeMethodDescription(package private) static BookieProtocol.BatchedReadRequestcreate(byte protocolVersion, long ledgerId, long entryId, short flags, byte[] masterKey, long requestId, int maxCount, long maxSize) (package private) int(package private) long(package private) longvoidrecycle()Methods inherited from class org.apache.bookkeeper.proto.BookieProtocol.ReadRequest
create, isFencingMethods inherited from class org.apache.bookkeeper.proto.BookieProtocol.Request
getEntryId, getFlags, getLedgerId, getMasterKey, getOpCode, getProtocolVersion, hasMasterKey, init, isHighPriority, toString
-
Field Details
-
requestId
long requestId -
maxCount
int maxCount -
maxSize
long maxSize
-
-
Method Details
-
create
static BookieProtocol.BatchedReadRequest create(byte protocolVersion, long ledgerId, long entryId, short flags, byte[] masterKey, long requestId, int maxCount, long maxSize) -
getMaxCount
int getMaxCount() -
getMaxSize
long getMaxSize() -
getRequestId
long getRequestId() -
recycle
public void recycle()- Overrides:
recyclein classBookieProtocol.ReadRequest
-