Backgroundable<java.lang.Void>, BackgroundPathable<java.lang.Void>, ErrorListenerPathable<java.lang.Void>, Pathable<java.lang.Void>, SyncBuilderpublic class SyncBuilderImpl extends java.lang.Object implements SyncBuilder, ErrorListenerPathable<java.lang.Void>
| Constructor | Description |
|---|---|
SyncBuilderImpl(CuratorFrameworkImpl client) |
|
SyncBuilderImpl(CuratorFrameworkImpl client,
Backgrounding backgrounding) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Void |
forPath(java.lang.String path) |
Commit the currently building operation using the given path
|
ErrorListenerPathable<java.lang.Void> |
inBackground() |
Perform the action in the background
|
ErrorListenerPathable<java.lang.Void> |
inBackground(java.lang.Object context) |
Perform the action in the background
|
ErrorListenerPathable<java.lang.Void> |
inBackground(BackgroundCallback callback) |
Perform the action in the background
|
ErrorListenerPathable<java.lang.Void> |
inBackground(BackgroundCallback callback,
java.lang.Object context) |
Perform the action in the background
|
ErrorListenerPathable<java.lang.Void> |
inBackground(BackgroundCallback callback,
java.lang.Object context,
java.util.concurrent.Executor executor) |
Perform the action in the background
|
ErrorListenerPathable<java.lang.Void> |
inBackground(BackgroundCallback callback,
java.util.concurrent.Executor executor) |
Perform the action in the background
|
void |
performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData) |
|
Pathable<java.lang.Void> |
withUnhandledErrorListener(UnhandledErrorListener listener) |
Set an error listener for this background operation.
|
public SyncBuilderImpl(CuratorFrameworkImpl client)
public SyncBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding)
public ErrorListenerPathable<java.lang.Void> inBackground()
BackgroundableinBackground in interface Backgroundable<java.lang.Void>public ErrorListenerPathable<java.lang.Void> inBackground(java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<java.lang.Void>context - context object - will be available from the event sent to the listenerpublic ErrorListenerPathable<java.lang.Void> inBackground(BackgroundCallback callback)
BackgroundableinBackground in interface Backgroundable<java.lang.Void>callback - a functor that will get called when the operation has completedpublic ErrorListenerPathable<java.lang.Void> inBackground(BackgroundCallback callback, java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<java.lang.Void>callback - a functor that will get called when the operation has completedcontext - context object - will be available from the event sent to the listenerpublic ErrorListenerPathable<java.lang.Void> inBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<java.lang.Void>callback - a functor that will get called when the operation has completedexecutor - executor to use for the background callpublic ErrorListenerPathable<java.lang.Void> inBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<java.lang.Void>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 Pathable<java.lang.Void> withUnhandledErrorListener(UnhandledErrorListener listener)
ErrorListenerPathablewithUnhandledErrorListener in interface ErrorListenerPathable<java.lang.Void>listener - the listenerpublic void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Void forPath(java.lang.String path)
throws java.lang.Exception
PathableCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.