Class OpResult

java.lang.Object
org.apache.zookeeper.OpResult
Direct Known Subclasses:
OpResult.CheckResult, OpResult.CreateResult, OpResult.DeleteResult, OpResult.ErrorResult, OpResult.GetChildrenResult, OpResult.GetDataResult, OpResult.SetDataResult

public abstract class OpResult extends Object
Encodes the result of a single part of a multiple operation commit.
  • Method Details

    • 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: