Package org.apache.zookeeper.txn
Class TxnHeader
java.lang.Object
org.apache.zookeeper.txn.TxnHeader
- All Implemented Interfaces:
Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoiddeserialize(InputArchive a_, String tag) booleanlongintgetCxid()longgetTime()intgetType()longgetZxid()inthashCode()voidreadFields(DataInput in) voidserialize(OutputArchive a_, String tag) voidsetClientId(long m_) voidsetCxid(int m_) voidsetTime(long m_) voidsetType(int m_) voidsetZxid(long m_) static StringtoString()voidwrite(DataOutput out)
-
Constructor Details
-
TxnHeader
public TxnHeader() -
TxnHeader
public TxnHeader(long clientId, int cxid, long zxid, long time, int type)
-
-
Method Details
-
getClientId
public long getClientId() -
setClientId
public void setClientId(long m_) -
getCxid
public int getCxid() -
setCxid
public void setCxid(int m_) -
getZxid
public long getZxid() -
setZxid
public void setZxid(long m_) -
getTime
public long getTime() -
setTime
public void setTime(long 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
-