Class SyncBuilderImpl
java.lang.Object
org.apache.curator.framework.imps.SyncBuilderImpl
- All Implemented Interfaces:
Backgroundable<ErrorListenerPathable<Void>>
,BackgroundPathable<Void>
,ErrorListenerPathable<Void>
,Pathable<Void>
,SyncBuilder
-
Constructor Summary
ConstructorDescriptionSyncBuilderImpl
(CuratorFrameworkImpl client) SyncBuilderImpl
(CuratorFrameworkImpl client, Backgrounding backgrounding) -
Method Summary
Modifier and TypeMethodDescriptionCommit the currently building operation using the given pathPerform the action in the backgroundinBackground
(Object context) Perform the action in the backgroundinBackground
(BackgroundCallback callback) Perform the action in the backgroundinBackground
(BackgroundCallback callback, Object context) Perform the action in the backgroundinBackground
(BackgroundCallback callback, Object context, Executor executor) Perform the action in the backgroundinBackground
(BackgroundCallback callback, Executor executor) Perform the action in the backgroundvoid
performBackgroundOperation
(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) Set an error listener for this background operation.
-
Constructor Details
-
SyncBuilderImpl
-
SyncBuilderImpl
-
-
Method Details
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<Void>>
- Returns:
- this
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<Void>>
- Parameters:
context
- context object - will be available from the event sent to the listener- Returns:
- this
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<Void>>
- Parameters:
callback
- a functor that will get called when the operation has completed- Returns:
- this
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<Void>>
- Parameters:
callback
- a functor that will get called when the operation has completedcontext
- context object - will be available from the event sent to the listener- Returns:
- this
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<Void>>
- Parameters:
callback
- a functor that will get called when the operation has completedexecutor
- executor to use for the background call- Returns:
- this
-
inBackground
public ErrorListenerPathable<Void> inBackground(BackgroundCallback callback, Object context, Executor executor) Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<Void>>
- Parameters:
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 call- Returns:
- this
-
withUnhandledErrorListener
Description copied from interface:ErrorListenerPathable
Set an error listener for this background operation. If an exception occurs while processing the call in the background, this listener will be called.- Specified by:
withUnhandledErrorListener
in interfaceErrorListenerPathable<Void>
- Parameters:
listener
- the listener- Returns:
- this for chaining
-
getBackgroundEventType
-
performBackgroundOperation
public void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) throws Exception - Throws:
Exception
-
forPath
Description copied from interface:Pathable
Commit the currently building operation using the given path
-