|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.curator.framework.api.transaction.CuratorTransactionResult
public class CuratorTransactionResult
Holds the result of one transactional operation
| Constructor Summary | |
|---|---|
CuratorTransactionResult(OperationType type,
String forPath,
String resultPath,
org.apache.zookeeper.data.Stat resultStat)
|
|
| Method Summary | |
|---|---|
String |
getForPath()
Returns the path that was passed to the operation when added |
String |
getResultPath()
Returns the operation generated path or null. |
org.apache.zookeeper.data.Stat |
getResultStat()
Returns the operation generated stat or null. |
OperationType |
getType()
Returns the operation type |
static com.google.common.base.Predicate<CuratorTransactionResult> |
ofTypeAndPath(OperationType type,
String forPath)
Utility that can be passed to Google Guava to find a particular result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CuratorTransactionResult(OperationType type,
String forPath,
String resultPath,
org.apache.zookeeper.data.Stat resultStat)
| Method Detail |
|---|
public static com.google.common.base.Predicate<CuratorTransactionResult> ofTypeAndPath(OperationType type,
String forPath)
Iterables.find(results, CuratorTransactionResult.ofTypeAndPath(OperationType.CREATE, path))
type - operation typeforPath - path
public OperationType getType()
public String getForPath()
public String getResultPath()
null. i.e. CuratorTransaction.create()
using an EPHEMERAL mode generates the created path plus its sequence number.
public org.apache.zookeeper.data.Stat getResultStat()
null. i.e. CuratorTransaction.setData()
generates a stat object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||