public class GetChildrenBuilderImpl extends Object implements GetChildrenBuilder, ErrorListenerPathable<List<String>>
| Constructor and Description |
|---|
GetChildrenBuilderImpl(CuratorFrameworkImpl client,
org.apache.zookeeper.Watcher watcher,
Backgrounding backgrounding,
org.apache.zookeeper.data.Stat responseStat) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
forPath(String path)
Commit the currently building operation using the given path
|
ErrorListenerPathable<List<String>> |
inBackground()
Perform the action in the background
|
ErrorListenerPathable<List<String>> |
inBackground(BackgroundCallback callback)
Perform the action in the background
|
ErrorListenerPathable<List<String>> |
inBackground(BackgroundCallback callback,
Executor executor)
Perform the action in the background
|
ErrorListenerPathable<List<String>> |
inBackground(BackgroundCallback callback,
Object context)
Perform the action in the background
|
ErrorListenerPathable<List<String>> |
inBackground(BackgroundCallback callback,
Object context,
Executor executor)
Perform the action in the background
|
ErrorListenerPathable<List<String>> |
inBackground(Object context)
Perform the action in the background
|
void |
performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) |
WatchPathable<List<String>> |
storingStatIn(org.apache.zookeeper.data.Stat stat)
Have the operation fill the provided stat object
|
BackgroundPathable<List<String>> |
usingWatcher(CuratorWatcher watcher)
Set a watcher for the operation
|
BackgroundPathable<List<String>> |
usingWatcher(org.apache.zookeeper.Watcher watcher)
Set a watcher for the operation
|
BackgroundPathable<List<String>> |
watched()
Have the operation set a watch
|
Pathable<List<String>> |
withUnhandledErrorListener(UnhandledErrorListener listener)
Set an error listener for this background operation.
|
public GetChildrenBuilderImpl(CuratorFrameworkImpl client, org.apache.zookeeper.Watcher watcher, Backgrounding backgrounding, org.apache.zookeeper.data.Stat responseStat)
public WatchPathable<List<String>> storingStatIn(org.apache.zookeeper.data.Stat stat)
StatablestoringStatIn in interface Statable<WatchPathable<List<String>>>stat - the stat to have filled inpublic ErrorListenerPathable<List<String>> inBackground(BackgroundCallback callback, Object context)
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<List<String>>>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<List<String>> inBackground(BackgroundCallback callback, Object context, Executor executor)
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<List<String>>>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 ErrorListenerPathable<List<String>> inBackground(BackgroundCallback callback)
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<List<String>>>callback - a functor that will get called when the operation has completedpublic ErrorListenerPathable<List<String>> inBackground(BackgroundCallback callback, Executor executor)
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<List<String>>>callback - a functor that will get called when the operation has completedexecutor - executor to use for the background callpublic ErrorListenerPathable<List<String>> inBackground()
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<List<String>>>public ErrorListenerPathable<List<String>> inBackground(Object context)
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<List<String>>>context - context object - will be available from the event sent to the listenerpublic Pathable<List<String>> withUnhandledErrorListener(UnhandledErrorListener listener)
ErrorListenerPathablewithUnhandledErrorListener in interface ErrorListenerPathable<List<String>>listener - the listenerpublic BackgroundPathable<List<String>> watched()
Watchablewatched in interface Watchable<BackgroundPathable<List<String>>>public BackgroundPathable<List<String>> usingWatcher(org.apache.zookeeper.Watcher watcher)
WatchableBaseusingWatcher in interface WatchableBase<BackgroundPathable<List<String>>>watcher - the watcherpublic BackgroundPathable<List<String>> usingWatcher(CuratorWatcher watcher)
WatchableBaseusingWatcher in interface WatchableBase<BackgroundPathable<List<String>>>watcher - the watcherpublic void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) throws Exception
ExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.