public class OperationResult<ResultType> extends Object
OperationResult
is used to ecapsulate the results of executing a
ZooKeeperOperation
Constructor and Description |
---|
OperationResult(Exception exception) |
OperationResult(ResultType result,
org.apache.zookeeper.data.Stat statistics) |
OperationResult(ResultType result,
org.apache.zookeeper.data.Stat statistics,
boolean ok) |
Modifier and Type | Method and Description |
---|---|
boolean |
failedDueTo(org.apache.zookeeper.KeeperException.Code... codes) |
Exception |
getException() |
ResultType |
getResult() |
org.apache.zookeeper.data.Stat |
getStatistics() |
boolean |
isOk() |
public OperationResult(ResultType result, org.apache.zookeeper.data.Stat statistics)
public OperationResult(ResultType result, org.apache.zookeeper.data.Stat statistics, boolean ok)
public OperationResult(Exception exception)
public Exception getException()
public org.apache.zookeeper.data.Stat getStatistics()
public ResultType getResult()
public boolean isOk()
public boolean failedDueTo(org.apache.zookeeper.KeeperException.Code... codes)
Apache Camel