Class GetChildrenBuilderImpl
java.lang.Object
org.apache.curator.framework.imps.GetChildrenBuilderImpl
- All Implemented Interfaces:
Backgroundable<ErrorListenerPathable<List<String>>>,BackgroundPathable<List<String>>,ErrorListenerPathable<List<String>>,GetChildrenBuilder,Pathable<List<String>>,Statable<WatchPathable<List<String>>>,Watchable<BackgroundPathable<List<String>>>,WatchableBase<BackgroundPathable<List<String>>>
public class GetChildrenBuilderImpl
extends Object
implements GetChildrenBuilder, ErrorListenerPathable<List<String>>
-
Constructor Summary
ConstructorsConstructorDescriptionGetChildrenBuilderImpl(CuratorFrameworkBase client, org.apache.zookeeper.Watcher watcher, Backgrounding backgrounding, org.apache.zookeeper.data.Stat responseStat) -
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 backgroundvoidperformBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) storingStatIn(org.apache.zookeeper.data.Stat stat) Have the operation fill the provided stat objectusingWatcher(CuratorWatcher watcher) Set a watcher for the operationusingWatcher(org.apache.zookeeper.Watcher watcher) Set a watcher for the operationwatched()Have the operation set a watchSet an error listener for this background operation.
-
Constructor Details
-
GetChildrenBuilderImpl
public GetChildrenBuilderImpl(CuratorFrameworkBase client, org.apache.zookeeper.Watcher watcher, Backgrounding backgrounding, org.apache.zookeeper.data.Stat responseStat)
-
-
Method Details
-
storingStatIn
Description copied from interface:StatableHave the operation fill the provided stat object- Specified by:
storingStatInin interfaceStatable<WatchPathable<List<String>>>- Parameters:
stat- the stat to have filled in- Returns:
- this
-
inBackground
public ErrorListenerPathable<List<String>> inBackground(BackgroundCallback callback, Object context) Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<List<String>>>- 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
public ErrorListenerPathable<List<String>> inBackground(BackgroundCallback callback, Object context, Executor executor) Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<List<String>>>- 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
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<List<String>>>- Parameters:
callback- a functor that will get called when the operation has completed- Returns:
- this
-
inBackground
public ErrorListenerPathable<List<String>> inBackground(BackgroundCallback callback, Executor executor) Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<List<String>>>- Parameters:
callback- a functor that will get called when the operation has completedexecutor- executor to use for the background call- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<List<String>>>- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<List<String>>>- Parameters:
context- context object - will be available from the event sent to the listener- Returns:
- this
-
withUnhandledErrorListener
Description copied from interface:ErrorListenerPathableSet 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:
withUnhandledErrorListenerin interfaceErrorListenerPathable<List<String>>- Parameters:
listener- the listener- Returns:
- this for chaining
-
watched
Description copied from interface:WatchableHave the operation set a watch- Specified by:
watchedin interfaceWatchable<BackgroundPathable<List<String>>>- Returns:
- this
-
usingWatcher
Description copied from interface:WatchableBaseSet a watcher for the operation- Specified by:
usingWatcherin interfaceWatchableBase<BackgroundPathable<List<String>>>- Parameters:
watcher- the watcher- Returns:
- this
-
usingWatcher
Description copied from interface:WatchableBaseSet a watcher for the operation- Specified by:
usingWatcherin interfaceWatchableBase<BackgroundPathable<List<String>>>- Parameters:
watcher- the watcher- Returns:
- this
-
getBackgroundEventType
-
performBackgroundOperation
public void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) throws Exception - Throws:
Exception
-
forPath
Description copied from interface:PathableCommit the currently building operation using the given path
-