Class GetChildrenBuilderImpl
- java.lang.Object
-
- org.apache.curator.framework.imps.GetChildrenBuilderImpl
-
- All Implemented Interfaces:
Backgroundable<ErrorListenerPathable<java.util.List<java.lang.String>>>,BackgroundPathable<java.util.List<java.lang.String>>,ErrorListenerPathable<java.util.List<java.lang.String>>,GetChildrenBuilder,Pathable<java.util.List<java.lang.String>>,Statable<WatchPathable<java.util.List<java.lang.String>>>,Watchable<BackgroundPathable<java.util.List<java.lang.String>>>,WatchableBase<BackgroundPathable<java.util.List<java.lang.String>>>
public class GetChildrenBuilderImpl extends java.lang.Object implements GetChildrenBuilder, ErrorListenerPathable<java.util.List<java.lang.String>>
-
-
Constructor Summary
Constructors Constructor Description GetChildrenBuilderImpl(CuratorFrameworkImpl client, org.apache.zookeeper.Watcher watcher, Backgrounding backgrounding, org.apache.zookeeper.data.Stat responseStat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>forPath(java.lang.String path)Commit the currently building operation using the given pathErrorListenerPathable<java.util.List<java.lang.String>>inBackground()Perform the action in the backgroundErrorListenerPathable<java.util.List<java.lang.String>>inBackground(java.lang.Object context)Perform the action in the backgroundErrorListenerPathable<java.util.List<java.lang.String>>inBackground(BackgroundCallback callback)Perform the action in the backgroundErrorListenerPathable<java.util.List<java.lang.String>>inBackground(BackgroundCallback callback, java.lang.Object context)Perform the action in the backgroundErrorListenerPathable<java.util.List<java.lang.String>>inBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)Perform the action in the backgroundErrorListenerPathable<java.util.List<java.lang.String>>inBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)Perform the action in the backgroundvoidperformBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData)WatchPathable<java.util.List<java.lang.String>>storingStatIn(org.apache.zookeeper.data.Stat stat)Have the operation fill the provided stat objectBackgroundPathable<java.util.List<java.lang.String>>usingWatcher(CuratorWatcher watcher)Set a watcher for the operationBackgroundPathable<java.util.List<java.lang.String>>usingWatcher(org.apache.zookeeper.Watcher watcher)Set a watcher for the operationBackgroundPathable<java.util.List<java.lang.String>>watched()Have the operation set a watchPathable<java.util.List<java.lang.String>>withUnhandledErrorListener(UnhandledErrorListener listener)Set an error listener for this background operation.
-
-
-
Constructor Detail
-
GetChildrenBuilderImpl
public GetChildrenBuilderImpl(CuratorFrameworkImpl client, org.apache.zookeeper.Watcher watcher, Backgrounding backgrounding, org.apache.zookeeper.data.Stat responseStat)
-
-
Method Detail
-
storingStatIn
public WatchPathable<java.util.List<java.lang.String>> storingStatIn(org.apache.zookeeper.data.Stat stat)
Description copied from interface:StatableHave the operation fill the provided stat object- Specified by:
storingStatInin interfaceStatable<WatchPathable<java.util.List<java.lang.String>>>- Parameters:
stat- the stat to have filled in- Returns:
- this
-
inBackground
public ErrorListenerPathable<java.util.List<java.lang.String>> inBackground(BackgroundCallback callback, java.lang.Object context)
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<java.util.List<java.lang.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<java.util.List<java.lang.String>> inBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<java.util.List<java.lang.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
public ErrorListenerPathable<java.util.List<java.lang.String>> inBackground(BackgroundCallback callback)
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<java.util.List<java.lang.String>>>- Parameters:
callback- a functor that will get called when the operation has completed- Returns:
- this
-
inBackground
public ErrorListenerPathable<java.util.List<java.lang.String>> inBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<java.util.List<java.lang.String>>>- 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<java.util.List<java.lang.String>> inBackground()
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<java.util.List<java.lang.String>>>- Returns:
- this
-
inBackground
public ErrorListenerPathable<java.util.List<java.lang.String>> inBackground(java.lang.Object context)
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<java.util.List<java.lang.String>>>- Parameters:
context- context object - will be available from the event sent to the listener- Returns:
- this
-
withUnhandledErrorListener
public Pathable<java.util.List<java.lang.String>> withUnhandledErrorListener(UnhandledErrorListener listener)
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<java.util.List<java.lang.String>>- Parameters:
listener- the listener- Returns:
- this for chaining
-
watched
public BackgroundPathable<java.util.List<java.lang.String>> watched()
Description copied from interface:WatchableHave the operation set a watch- Specified by:
watchedin interfaceWatchable<BackgroundPathable<java.util.List<java.lang.String>>>- Returns:
- this
-
usingWatcher
public BackgroundPathable<java.util.List<java.lang.String>> usingWatcher(org.apache.zookeeper.Watcher watcher)
Description copied from interface:WatchableBaseSet a watcher for the operation- Specified by:
usingWatcherin interfaceWatchableBase<BackgroundPathable<java.util.List<java.lang.String>>>- Parameters:
watcher- the watcher- Returns:
- this
-
usingWatcher
public BackgroundPathable<java.util.List<java.lang.String>> usingWatcher(CuratorWatcher watcher)
Description copied from interface:WatchableBaseSet a watcher for the operation- Specified by:
usingWatcherin interfaceWatchableBase<BackgroundPathable<java.util.List<java.lang.String>>>- Parameters:
watcher- the watcher- Returns:
- this
-
performBackgroundOperation
public void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData) throws java.lang.Exception- Throws:
java.lang.Exception
-
forPath
public java.util.List<java.lang.String> forPath(java.lang.String path) throws java.lang.ExceptionDescription copied from interface:PathableCommit the currently building operation using the given path
-
-