Package org.apache.bookkeeper.proto
Class BookieProtocol.ReadResponse
- java.lang.Object
-
- org.apache.bookkeeper.proto.BookieProtocol.Response
-
- org.apache.bookkeeper.proto.BookieProtocol.ReadResponse
-
- All Implemented Interfaces:
io.netty.util.ReferenceCounted
- Enclosing interface:
- BookieProtocol
public static class BookieProtocol.ReadResponse extends BookieProtocol.Response implements io.netty.util.ReferenceCounted
A request that reads data.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) io.netty.buffer.ByteBuf
data
-
Fields inherited from class org.apache.bookkeeper.proto.BookieProtocol.Response
entryId, errorCode, ledgerId, opCode, protocolVersion
-
-
Constructor Summary
Constructors Constructor Description ReadResponse(byte protocolVersion, int errorCode, long ledgerId, long entryId)
ReadResponse(byte protocolVersion, int errorCode, long ledgerId, long entryId, io.netty.buffer.ByteBuf data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) io.netty.buffer.ByteBuf
getData()
(package private) boolean
hasData()
int
refCnt()
boolean
release()
boolean
release(int decrement)
io.netty.util.ReferenceCounted
retain()
io.netty.util.ReferenceCounted
retain(int increment)
io.netty.util.ReferenceCounted
touch()
io.netty.util.ReferenceCounted
touch(java.lang.Object hint)
-
Methods inherited from class org.apache.bookkeeper.proto.BookieProtocol.Response
getEntryId, getErrorCode, getLedgerId, getOpCode, getProtocolVersion, init, recycle, toString
-
-
-
-
Method Detail
-
hasData
boolean hasData()
-
getData
io.netty.buffer.ByteBuf getData()
-
refCnt
public int refCnt()
- Specified by:
refCnt
in interfaceio.netty.util.ReferenceCounted
-
retain
public io.netty.util.ReferenceCounted retain()
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
retain
public io.netty.util.ReferenceCounted retain(int increment)
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
touch
public io.netty.util.ReferenceCounted touch()
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
touch
public io.netty.util.ReferenceCounted touch(java.lang.Object hint)
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()
- Specified by:
release
in interfaceio.netty.util.ReferenceCounted
- Overrides:
release
in classBookieProtocol.Response
-
release
public boolean release(int decrement)
- Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-
-