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
 
public static class BookieProtocol.BatchedReadRequest extends BookieProtocol.ReadRequest
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
Fields Modifier and Type Field Description (package private) intmaxCount(package private) longmaxSize(package private) longrequestId- 
Fields inherited from class org.apache.bookkeeper.proto.BookieProtocol.Request
entryId, flags, ledgerId, masterKey, opCode, protocolVersion 
 - 
 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static BookieProtocol.BatchedReadRequestcreate(byte protocolVersion, long ledgerId, long entryId, short flags, byte[] masterKey, long requestId, int maxCount, long maxSize)(package private) intgetMaxCount()(package private) longgetMaxSize()(package private) longgetRequestId()voidrecycle()- 
Methods inherited from class org.apache.bookkeeper.proto.BookieProtocol.ReadRequest
create, isFencing 
- 
Methods inherited from class org.apache.bookkeeper.proto.BookieProtocol.Request
getEntryId, getFlags, getLedgerId, getMasterKey, getOpCode, getProtocolVersion, hasMasterKey, init, isHighPriority, toString 
 - 
 
 - 
 
- 
- 
Method Detail
- 
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
 
 - 
 
 -