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()
Backgroundable
inBackground
in interface Backgroundable<Pathable<Void>>
public Pathable<Void> inBackground(Object context)
Backgroundable
inBackground
in interface Backgroundable<Pathable<Void>>
context
- context object - will be available from the event sent to the listenerpublic Pathable<Void> inBackground(BackgroundCallback callback)
Backgroundable
inBackground
in interface Backgroundable<Pathable<Void>>
callback
- a functor that will get called when the operation has completedpublic Pathable<Void> inBackground(BackgroundCallback callback, Object context)
Backgroundable
inBackground
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)
Backgroundable
inBackground
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)
Backgroundable
inBackground
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
Exception
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.