Package org.apache.bookkeeper.proto
Class BookieProtocol.Response
- java.lang.Object
-
- org.apache.bookkeeper.proto.BookieProtocol.Response
-
- Direct Known Subclasses:
BookieProtocol.AddResponse
,BookieProtocol.AuthResponse
,BookieProtocol.BatchedReadResponse
,BookieProtocol.ErrorResponse
,BookieProtocol.ReadResponse
- Enclosing interface:
- BookieProtocol
public abstract static class BookieProtocol.Response extends java.lang.Object
A response object.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long
entryId
(package private) int
errorCode
(package private) long
ledgerId
(package private) byte
opCode
(package private) byte
protocolVersion
-
Constructor Summary
Constructors Constructor Description Response()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) long
getEntryId()
(package private) int
getErrorCode()
(package private) long
getLedgerId()
(package private) byte
getOpCode()
(package private) byte
getProtocolVersion()
protected void
init(byte protocolVersion, byte opCode, int errorCode, long ledgerId, long entryId)
(package private) void
recycle()
(package private) boolean
release()
java.lang.String
toString()
-
-
-
Method Detail
-
init
protected void init(byte protocolVersion, byte opCode, int errorCode, long ledgerId, long entryId)
-
getProtocolVersion
byte getProtocolVersion()
-
getOpCode
byte getOpCode()
-
getLedgerId
long getLedgerId()
-
getEntryId
long getEntryId()
-
getErrorCode
int getErrorCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
release
boolean release()
-
recycle
void recycle()
-
-