Package org.apache.zookeeper
Class MultiOperationRecord
java.lang.Object
org.apache.zookeeper.MultiOperationRecord
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
deserialize
(InputArchive archive, String tag) boolean
Returns the kind of the operations contained by the record.int
hashCode()
iterator()
void
serialize
(OutputArchive archive, String tag) int
size()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MultiOperationRecord
public MultiOperationRecord() -
MultiOperationRecord
- Throws:
IllegalArgumentException
-
-
Method Details
-
iterator
-
add
- Throws:
IllegalArgumentException
-
size
public int size() -
getOpKind
Returns the kind of the operations contained by the record.- Returns:
- The OpKind value of all the elements in the record.
-
serialize
- Specified by:
serialize
in interfaceRecord
- Throws:
IOException
-
deserialize
- Specified by:
deserialize
in interfaceRecord
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-