Package org.apache.zookeeper.proto
Class RequestHeader
java.lang.Object
org.apache.zookeeper.proto.RequestHeader
- All Implemented Interfaces:
Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoiddeserialize(InputArchive a_, String tag) booleanintgetType()intgetXid()inthashCode()voidreadFields(DataInput in) voidserialize(OutputArchive a_, String tag) voidsetType(int m_) voidsetXid(int m_) static StringtoString()voidwrite(DataOutput out)
-
Constructor Details
-
RequestHeader
public RequestHeader() -
RequestHeader
public RequestHeader(int xid, int type)
-
-
Method Details
-
getXid
public int getXid() -
setXid
public void setXid(int m_) -
getType
public int getType() -
setType
public void setType(int m_) -
serialize
- Specified by:
serializein interfaceRecord- Throws:
IOException
-
deserialize
- Specified by:
deserializein interfaceRecord- Throws:
IOException
-
toString
-
write
- Throws:
IOException
-
readFields
- Throws:
IOException
-
compareTo
- Throws:
ClassCastException
-
equals
-
hashCode
public int hashCode() -
signature
-