public class SyncBuilderImpl extends Object implements SyncBuilder
| Constructor and Description |
|---|
SyncBuilderImpl(CuratorFrameworkImpl client) |
| Modifier and Type | Method and Description |
|---|---|
Void |
forPath(String path)
Commit the currently building operation using the given path
|
Pathable<Void> |
inBackground()
Perform the action in the background
|
Pathable<Void> |
inBackground(BackgroundCallback callback)
Perform the action in the background
|
Pathable<Void> |
inBackground(BackgroundCallback callback,
Executor executor)
Perform the action in the background
|
Pathable<Void> |
inBackground(BackgroundCallback callback,
Object context)
Perform the action in the background
|
Pathable<Void> |
inBackground(BackgroundCallback callback,
Object context,
Executor executor)
Perform the action in the background
|
Pathable<Void> |
inBackground(Object context)
Perform the action in the background
|
void |
performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) |
public SyncBuilderImpl(CuratorFrameworkImpl client)
public Pathable<Void> inBackground()
BackgroundableinBackground in interface Backgroundable<Pathable<Void>>public Pathable<Void> inBackground(Object context)
BackgroundableinBackground in interface Backgroundable<Pathable<Void>>context - context object - will be available from the event sent to the listenerpublic Pathable<Void> inBackground(BackgroundCallback callback)
BackgroundableinBackground in interface Backgroundable<Pathable<Void>>callback - a functor that will get called when the operation has completedpublic Pathable<Void> inBackground(BackgroundCallback callback, Object context)
BackgroundableinBackground in interface Backgroundable<Pathable<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 Pathable<Void> inBackground(BackgroundCallback callback, Executor executor)
BackgroundableinBackground in interface Backgroundable<Pathable<Void>>callback - a functor that will get called when the operation has completedexecutor - executor to use for the background callpublic Pathable<Void> inBackground(BackgroundCallback callback, Object context, Executor executor)
BackgroundableinBackground in interface Backgroundable<Pathable<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 void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) throws Exception
ExceptionCopyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.