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)
Statable
storingStatIn
in interface Statable<WatchPathable<List<String>>>
stat
- the stat to have filled inpublic ErrorListenerPathable<List<String>> inBackground(BackgroundCallback callback, Object context)
Backgroundable
inBackground
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)
Backgroundable
inBackground
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)
Backgroundable
inBackground
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)
Backgroundable
inBackground
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()
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerPathable<List<String>>>
public ErrorListenerPathable<List<String>> inBackground(Object context)
Backgroundable
inBackground
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)
ErrorListenerPathable
withUnhandledErrorListener
in interface ErrorListenerPathable<List<String>>
listener
- the listenerpublic BackgroundPathable<List<String>> watched()
Watchable
watched
in interface Watchable<BackgroundPathable<List<String>>>
public BackgroundPathable<List<String>> usingWatcher(org.apache.zookeeper.Watcher watcher)
WatchableBase
usingWatcher
in interface WatchableBase<BackgroundPathable<List<String>>>
watcher
- the watcherpublic BackgroundPathable<List<String>> usingWatcher(CuratorWatcher watcher)
WatchableBase
usingWatcher
in interface WatchableBase<BackgroundPathable<List<String>>>
watcher
- the watcherpublic void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) throws Exception
Exception
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.