Interface CuratorTransaction
-
- All Known Subinterfaces:
CuratorTransactionFinal
public interface CuratorTransactionDeprecated.Transactional/atomic operations. See
ZooKeeper.multi(Iterable)for details on ZooKeeper transactions.The general form for this interface is:
curator.inTransaction().operation().arguments().forPath(...). and().more-operations. and().commit();Here's an example that creates two nodes in a transaction
curator.inTransaction(). create().forPath("/path-one", path-one-data). and().create().forPath("/path-two", path-two-data). and().commit();Important: the operations are not submitted until
CuratorTransactionFinal.commit()is called.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description TransactionCheckBuilder<CuratorTransactionBridge>check()Deprecated.Start a check builder in the transactionTransactionCreateBuilder<CuratorTransactionBridge>create()Deprecated.Start a create builder in the transactionTransactionDeleteBuilder<CuratorTransactionBridge>delete()Deprecated.Start a delete builder in the transactionTransactionSetDataBuilder<CuratorTransactionBridge>setData()Deprecated.Start a setData builder in the transaction
-
-
-
Method Detail
-
create
TransactionCreateBuilder<CuratorTransactionBridge> create()
Deprecated.Start a create builder in the transaction- Returns:
- builder object
-
delete
TransactionDeleteBuilder<CuratorTransactionBridge> delete()
Deprecated.Start a delete builder in the transaction- Returns:
- builder object
-
setData
TransactionSetDataBuilder<CuratorTransactionBridge> setData()
Deprecated.Start a setData builder in the transaction- Returns:
- builder object
-
check
TransactionCheckBuilder<CuratorTransactionBridge> check()
Deprecated.Start a check builder in the transaction- Returns:
- builder object
-
-