Package org.apache.bookkeeper.proto
Class BookieProtocol.BatchedReadResponse
- java.lang.Object
-
- org.apache.bookkeeper.proto.BookieProtocol.Response
-
- org.apache.bookkeeper.proto.BookieProtocol.BatchedReadResponse
-
- All Implemented Interfaces:
io.netty.util.ReferenceCounted
- Enclosing interface:
- BookieProtocol
public static class BookieProtocol.BatchedReadResponse extends BookieProtocol.Response implements io.netty.util.ReferenceCounted
The response for batched read. The ledger_id and entry_id will be used as start_ledger_id and start_entry_id. And all the returned data is from one ledger.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ByteBufListdata(package private) longrequestId-
Fields inherited from class org.apache.bookkeeper.proto.BookieProtocol.Response
entryId, errorCode, ledgerId, opCode, protocolVersion
-
-
Constructor Summary
Constructors Constructor Description BatchedReadResponse(byte protocolVersion, int errorCode, long ledgerId, long entryId, long requestId)BatchedReadResponse(byte protocolVersion, int errorCode, long ledgerId, long entryId, long requestId, ByteBufList data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ByteBufListgetData()(package private) longgetRequestId()intrefCnt()booleanrelease()booleanrelease(int decrement)io.netty.util.ReferenceCountedretain()io.netty.util.ReferenceCountedretain(int increment)io.netty.util.ReferenceCountedtouch()io.netty.util.ReferenceCountedtouch(java.lang.Object hint)-
Methods inherited from class org.apache.bookkeeper.proto.BookieProtocol.Response
getEntryId, getErrorCode, getLedgerId, getOpCode, getProtocolVersion, init, recycle, toString
-
-
-
-
Field Detail
-
requestId
final long requestId
-
data
final ByteBufList data
-
-
Constructor Detail
-
BatchedReadResponse
BatchedReadResponse(byte protocolVersion, int errorCode, long ledgerId, long entryId, long requestId)
-
BatchedReadResponse
BatchedReadResponse(byte protocolVersion, int errorCode, long ledgerId, long entryId, long requestId, ByteBufList data)
-
-
Method Detail
-
getData
ByteBufList getData()
-
getRequestId
long getRequestId()
-
refCnt
public int refCnt()
- Specified by:
refCntin interfaceio.netty.util.ReferenceCounted
-
retain
public io.netty.util.ReferenceCounted retain()
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
public io.netty.util.ReferenceCounted retain(int increment)
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
touch
public io.netty.util.ReferenceCounted touch()
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
public io.netty.util.ReferenceCounted touch(java.lang.Object hint)
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()
- Specified by:
releasein interfaceio.netty.util.ReferenceCounted- Overrides:
releasein classBookieProtocol.Response
-
release
public boolean release(int decrement)
- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
-