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 TypeMethodDescriptionvoidvoiddeserialize(InputArchive archive, String tag) booleanReturns the kind of the operations contained by the record.inthashCode()iterator()voidserialize(OutputArchive archive, String tag) intsize()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
serializein interfaceRecord- Throws:
IOException
-
deserialize
- Specified by:
deserializein interfaceRecord- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-