Package org.apache.zookeeper
Class MultiTransactionRecord
- java.lang.Object
-
- org.apache.zookeeper.MultiTransactionRecord
-
- All Implemented Interfaces:
java.lang.Iterable<Op>
,org.apache.jute.Record
public class MultiTransactionRecord extends java.lang.Object implements org.apache.jute.Record, java.lang.Iterable<Op>
Encodes a composite transaction. In the wire format, each transaction consists of a single MultiHeader followed by the appropriate request. Each of these MultiHeaders has a type which indicates the type of the following transaction or a negative number if no more transactions are included.
-
-
Constructor Summary
Constructors Constructor Description MultiTransactionRecord()
MultiTransactionRecord(java.lang.Iterable<Op> ops)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Op op)
void
deserialize(org.apache.jute.InputArchive archive, java.lang.String tag)
boolean
equals(java.lang.Object o)
int
hashCode()
java.util.Iterator<Op>
iterator()
void
serialize(org.apache.jute.OutputArchive archive, java.lang.String tag)
int
size()
-
-
-
Constructor Detail
-
MultiTransactionRecord
public MultiTransactionRecord()
-
MultiTransactionRecord
public MultiTransactionRecord(java.lang.Iterable<Op> ops)
-
-
Method Detail
-
iterator
public java.util.Iterator<Op> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<Op>
-
add
public void add(Op op)
-
size
public int size()
-
serialize
public void serialize(org.apache.jute.OutputArchive archive, java.lang.String tag) throws java.io.IOException
- Specified by:
serialize
in interfaceorg.apache.jute.Record
- Throws:
java.io.IOException
-
deserialize
public void deserialize(org.apache.jute.InputArchive archive, java.lang.String tag) throws java.io.IOException
- Specified by:
deserialize
in interfaceorg.apache.jute.Record
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-