Package org.apache.bookkeeper.proto
Class BookieProtocol.Request
- java.lang.Object
-
- org.apache.bookkeeper.proto.BookieProtocol.Request
-
- Direct Known Subclasses:
BookieProtocol.AuthRequest
,BookieProtocol.ParsedAddRequest
,BookieProtocol.ReadRequest
- Enclosing interface:
- BookieProtocol
public static class BookieProtocol.Request extends java.lang.Object
A Bookie request object.
-
-
Constructor Summary
Constructors Constructor Description Request()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) long
getEntryId()
(package private) short
getFlags()
(package private) long
getLedgerId()
(package private) byte[]
getMasterKey()
(package private) byte
getOpCode()
(package private) byte
getProtocolVersion()
(package private) boolean
hasMasterKey()
protected void
init(byte protocolVersion, byte opCode, long ledgerId, long entryId, short flags, byte[] masterKey)
(package private) boolean
isHighPriority()
void
recycle()
java.lang.String
toString()
-
-
-
Method Detail
-
init
protected void init(byte protocolVersion, byte opCode, long ledgerId, long entryId, short flags, byte[] masterKey)
-
getProtocolVersion
byte getProtocolVersion()
-
getOpCode
byte getOpCode()
-
getLedgerId
long getLedgerId()
-
getEntryId
long getEntryId()
-
getFlags
short getFlags()
-
hasMasterKey
boolean hasMasterKey()
-
getMasterKey
byte[] getMasterKey()
-
isHighPriority
boolean isHighPriority()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
recycle
public void recycle()
-
-