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