Package org.apache.zookeeper
Class MultiResponse
- java.lang.Object
-
- org.apache.zookeeper.MultiResponse
-
public class MultiResponse extends Object implements Record, Iterable<OpResult>
Handles the response from a multi request. Such a response consists of a sequence of responses each prefixed by a MultiResponse that indicates the type of the response. The end of the list is indicated by a MultiHeader with a negative type. Each individual response is in the same format as with the corresponding operation in the original request list.
-
-
Constructor Summary
Constructors Constructor Description MultiResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(OpResult x)voiddeserialize(InputArchive archive, String tag)booleanequals(Object o)List<OpResult>getResultList()inthashCode()Iterator<OpResult>iterator()voidserialize(OutputArchive archive, String tag)intsize()-
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
-
-
-
-
Method Detail
-
add
public void add(OpResult x)
-
size
public int size()
-
serialize
public void serialize(OutputArchive archive, String tag) throws IOException
- Specified by:
serializein interfaceRecord- Throws:
IOException
-
deserialize
public void deserialize(InputArchive archive, String tag) throws IOException
- Specified by:
deserializein interfaceRecord- Throws:
IOException
-
-