Backgroundable<ErrorListenerMultiTransactionMain>, ErrorListenerMultiTransactionMain, CuratorMultiTransaction, CuratorMultiTransactionMainpublic class CuratorMultiTransactionImpl extends java.lang.Object implements CuratorMultiTransaction, CuratorMultiTransactionMain, ErrorListenerMultiTransactionMain
| Constructor | Description |
|---|---|
CuratorMultiTransactionImpl(CuratorFrameworkImpl client) |
|
CuratorMultiTransactionImpl(CuratorFrameworkImpl client,
Backgrounding backgrounding) |
| 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.
|
ErrorListenerMultiTransactionMain |
inBackground() |
Perform the action in the background
|
ErrorListenerMultiTransactionMain |
inBackground(java.lang.Object context) |
Perform the action in the background
|
ErrorListenerMultiTransactionMain |
inBackground(BackgroundCallback callback) |
Perform the action in the background
|
ErrorListenerMultiTransactionMain |
inBackground(BackgroundCallback callback,
java.lang.Object context) |
Perform the action in the background
|
ErrorListenerMultiTransactionMain |
inBackground(BackgroundCallback callback,
java.lang.Object context,
java.util.concurrent.Executor executor) |
Perform the action in the background
|
ErrorListenerMultiTransactionMain |
inBackground(BackgroundCallback callback,
java.util.concurrent.Executor executor) |
Perform the action in the background
|
void |
performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<org.apache.curator.framework.imps.CuratorMultiTransactionRecord> operationAndData) |
|
CuratorMultiTransactionMain |
withUnhandledErrorListener(UnhandledErrorListener listener) |
Set an error listener for this background operation.
|
public CuratorMultiTransactionImpl(CuratorFrameworkImpl client)
public CuratorMultiTransactionImpl(CuratorFrameworkImpl client, Backgrounding backgrounding)
public ErrorListenerMultiTransactionMain inBackground()
BackgroundableinBackground in interface Backgroundable<ErrorListenerMultiTransactionMain>public ErrorListenerMultiTransactionMain inBackground(java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<ErrorListenerMultiTransactionMain>context - context object - will be available from the event sent to the listenerpublic ErrorListenerMultiTransactionMain inBackground(BackgroundCallback callback)
BackgroundableinBackground in interface Backgroundable<ErrorListenerMultiTransactionMain>callback - a functor that will get called when the operation has completedpublic ErrorListenerMultiTransactionMain inBackground(BackgroundCallback callback, java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<ErrorListenerMultiTransactionMain>callback - a functor that will get called when the operation has completedcontext - context object - will be available from the event sent to the listenerpublic ErrorListenerMultiTransactionMain inBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<ErrorListenerMultiTransactionMain>callback - a functor that will get called when the operation has completedexecutor - executor to use for the background callpublic ErrorListenerMultiTransactionMain inBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<ErrorListenerMultiTransactionMain>callback - a functor that will get called when the operation has completedcontext - context object - will be available from the event sent to the listenerexecutor - executor to use for the background callpublic CuratorMultiTransactionMain withUnhandledErrorListener(UnhandledErrorListener listener)
ErrorListenerMultiTransactionMainwithUnhandledErrorListener in interface ErrorListenerMultiTransactionMainlistener - the listenerpublic java.util.List<CuratorTransactionResult> forOperations(CuratorOp... operations) throws java.lang.Exception
CuratorMultiTransactionMainCuratorFramework.transactionOp()forOperations in interface CuratorMultiTransactionMainoperations - operations that make up the transaction.null for background operationsjava.lang.Exception - errorspublic java.util.List<CuratorTransactionResult> forOperations(java.util.List<CuratorOp> operations) throws java.lang.Exception
CuratorMultiTransactionMainCuratorFramework.transactionOp()forOperations in interface CuratorMultiTransactionMainoperations - operations that make up the transaction.null for background operationsjava.lang.Exception - errorspublic void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<org.apache.curator.framework.imps.CuratorMultiTransactionRecord> operationAndData)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.