org.apache.zookeeper
Class MultiTransactionRecord
java.lang.Object
org.apache.zookeeper.MultiTransactionRecord
- All Implemented Interfaces:
- Iterable<Op>, org.apache.jute.Record
public class MultiTransactionRecord
- extends Object
- implements org.apache.jute.Record, 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.
MultiTransactionRecord
public MultiTransactionRecord()
MultiTransactionRecord
public MultiTransactionRecord(Iterable<Op> ops)
iterator
public Iterator<Op> iterator()
- Specified by:
iterator in interface Iterable<Op>
add
public void add(Op op)
size
public int size()
serialize
public void serialize(org.apache.jute.OutputArchive archive,
String tag)
throws IOException
- Specified by:
serialize in interface org.apache.jute.Record
- Throws:
IOException
deserialize
public void deserialize(org.apache.jute.InputArchive archive,
String tag)
throws IOException
- Specified by:
deserialize in interface org.apache.jute.Record
- Throws:
IOException
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2013 The Apache Software Foundation