Interface CuratorMultiTransactionMain
-
- All Known Subinterfaces:
CuratorMultiTransaction,ErrorListenerMultiTransactionMain
- All Known Implementing Classes:
CuratorMultiTransactionImpl
public interface CuratorMultiTransactionMain
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<CuratorTransactionResult>forOperations(java.util.List<CuratorOp> operations)Commit the given operations as a single transaction.java.util.List<CuratorTransactionResult>forOperations(CuratorOp... operations)Commit the given operations as a single transaction.
-
-
-
Method Detail
-
forOperations
java.util.List<CuratorTransactionResult> forOperations(CuratorOp... operations) throws java.lang.Exception
Commit the given operations as a single transaction. Create the operation instances viaCuratorFramework.transactionOp()- Parameters:
operations- operations that make up the transaction.- Returns:
- result details for foreground operations or
nullfor background operations - Throws:
java.lang.Exception- errors
-
forOperations
java.util.List<CuratorTransactionResult> forOperations(java.util.List<CuratorOp> operations) throws java.lang.Exception
Commit the given operations as a single transaction. Create the operation instances viaCuratorFramework.transactionOp()- Parameters:
operations- operations that make up the transaction.- Returns:
- result details for foreground operations or
nullfor background operations - Throws:
java.lang.Exception- errors
-
-