Package org.apache.zookeeper
Class MultiOperationRecord
- java.lang.Object
- 
- org.apache.zookeeper.MultiOperationRecord
 
- 
 public class MultiOperationRecord extends Object implements Record, Iterable<Op> Encodes a composite operation. In the wire format, each operation consists of a single MultiHeader followed by the appropriate request. Each of these MultiHeaders has a type which indicates the type of the following operation or a negative number if no more operations are included. All of the operations must be from the same OpKind.
- 
- 
Constructor SummaryConstructors Constructor Description MultiOperationRecord()MultiOperationRecord(Iterable<Op> ops)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Op op)voiddeserialize(InputArchive archive, String tag)booleanequals(Object o)Op.OpKindgetOpKind()Returns the kind of the operations contained by the record.inthashCode()Iterator<Op>iterator()voidserialize(OutputArchive archive, String tag)intsize()- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Constructor Detail- 
MultiOperationRecordpublic MultiOperationRecord() 
 - 
MultiOperationRecordpublic MultiOperationRecord(Iterable<Op> ops) throws IllegalArgumentException - Throws:
- IllegalArgumentException
 
 
- 
 - 
Method Detail- 
addpublic void add(Op op) throws IllegalArgumentException - Throws:
- IllegalArgumentException
 
 - 
sizepublic int size() 
 - 
getOpKindpublic Op.OpKind getOpKind() Returns the kind of the operations contained by the record.- Returns:
- The OpKind value of all the elements in the record.
 
 - 
serializepublic void serialize(OutputArchive archive, String tag) throws IOException - Specified by:
- serializein interface- Record
- Throws:
- IOException
 
 - 
deserializepublic void deserialize(InputArchive archive, String tag) throws IOException - Specified by:
- deserializein interface- Record
- Throws:
- IOException
 
 
- 
 
-