Package org.apache.zookeeper
Class OpResult
- java.lang.Object
-
- org.apache.zookeeper.OpResult
-
- Direct Known Subclasses:
OpResult.CheckResult,OpResult.CreateResult,OpResult.DeleteResult,OpResult.ErrorResult,OpResult.SetDataResult
public abstract class OpResult extends java.lang.ObjectEncodes the result of a single part of a multiple operation commit.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpResult.CheckResultA result from a version check operation.static classOpResult.CreateResultA result from a create operation.static classOpResult.DeleteResultA result from a delete operation.static classOpResult.ErrorResultAn error result from any kind of operation.static classOpResult.SetDataResultA result from a setData operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetType()Encodes the return type as from ZooDefs.OpCode.
-
-
-
Method Detail
-
getType
public int getType()
Encodes the return type as from ZooDefs.OpCode. Can be used to dispatch to the correct cast needed for getting the desired additional result data.- Returns:
- an integer identifying what kind of operation this result came from.
- See Also:
ZooDefs.OpCode
-
-