Package org.apache.zookeeper.txn
Class Txn
java.lang.Object
org.apache.zookeeper.txn.Txn
- All Implemented Interfaces:
Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoiddeserialize(InputArchive a_, String tag) booleanbyte[]getData()intgetType()inthashCode()voidreadFields(DataInput in) voidserialize(OutputArchive a_, String tag) voidsetData(byte[] m_) voidsetType(int m_) static StringtoString()voidwrite(DataOutput out)
-
Constructor Details
-
Txn
public Txn() -
Txn
public Txn(int type, byte[] data)
-
-
Method Details
-
getType
public int getType() -
setType
public void setType(int m_) -
getData
public byte[] getData() -
setData
public void setData(byte[] 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
-