public class GetConfigBuilderImpl extends Object implements GetConfigBuilder, ErrorListenerEnsembleable<byte[]>
Constructor and Description |
---|
GetConfigBuilderImpl(CuratorFrameworkImpl client) |
GetConfigBuilderImpl(CuratorFrameworkImpl client,
Backgrounding backgrounding,
org.apache.zookeeper.Watcher watcher,
org.apache.zookeeper.data.Stat stat) |
Modifier and Type | Method and Description |
---|---|
byte[] |
forEnsemble() |
ErrorListenerEnsembleable<byte[]> |
inBackground()
Perform the action in the background
|
ErrorListenerEnsembleable<byte[]> |
inBackground(BackgroundCallback callback)
Perform the action in the background
|
ErrorListenerEnsembleable<byte[]> |
inBackground(BackgroundCallback callback,
Executor executor)
Perform the action in the background
|
ErrorListenerEnsembleable<byte[]> |
inBackground(BackgroundCallback callback,
Object context)
Perform the action in the background
|
ErrorListenerEnsembleable<byte[]> |
inBackground(BackgroundCallback callback,
Object context,
Executor executor)
Perform the action in the background
|
ErrorListenerEnsembleable<byte[]> |
inBackground(Object context)
Perform the action in the background
|
void |
performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<Void> operationAndData) |
WatchBackgroundEnsembleable<byte[]> |
storingStatIn(org.apache.zookeeper.data.Stat stat)
Have the operation fill the provided stat object
|
BackgroundEnsembleable<byte[]> |
usingWatcher(CuratorWatcher watcher)
Set a watcher for the operation
|
BackgroundEnsembleable<byte[]> |
usingWatcher(org.apache.zookeeper.Watcher watcher)
Set a watcher for the operation
|
BackgroundEnsembleable<byte[]> |
watched()
Have the operation set a watch
|
Ensembleable<byte[]> |
withUnhandledErrorListener(UnhandledErrorListener listener)
Set an error listener for this background operation.
|
public GetConfigBuilderImpl(CuratorFrameworkImpl client)
public GetConfigBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, org.apache.zookeeper.Watcher watcher, org.apache.zookeeper.data.Stat stat)
public WatchBackgroundEnsembleable<byte[]> storingStatIn(org.apache.zookeeper.data.Stat stat)
Statable
storingStatIn
in interface Statable<WatchBackgroundEnsembleable<byte[]>>
stat
- the stat to have filled inpublic BackgroundEnsembleable<byte[]> watched()
Watchable
watched
in interface Watchable<BackgroundEnsembleable<byte[]>>
public BackgroundEnsembleable<byte[]> usingWatcher(org.apache.zookeeper.Watcher watcher)
WatchableBase
usingWatcher
in interface WatchableBase<BackgroundEnsembleable<byte[]>>
watcher
- the watcherpublic BackgroundEnsembleable<byte[]> usingWatcher(CuratorWatcher watcher)
WatchableBase
usingWatcher
in interface WatchableBase<BackgroundEnsembleable<byte[]>>
watcher
- the watcherpublic ErrorListenerEnsembleable<byte[]> inBackground()
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerEnsembleable<byte[]>>
public ErrorListenerEnsembleable<byte[]> inBackground(Object context)
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerEnsembleable<byte[]>>
context
- context object - will be available from the event sent to the listenerpublic ErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback)
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerEnsembleable<byte[]>>
callback
- a functor that will get called when the operation has completedpublic ErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback, Object context)
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerEnsembleable<byte[]>>
callback
- a functor that will get called when the operation has completedcontext
- context object - will be available from the event sent to the listenerpublic ErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback, Executor executor)
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerEnsembleable<byte[]>>
callback
- a functor that will get called when the operation has completedexecutor
- executor to use for the background callpublic ErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback, Object context, Executor executor)
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerEnsembleable<byte[]>>
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 Ensembleable<byte[]> withUnhandledErrorListener(UnhandledErrorListener listener)
ErrorListenerEnsembleable
withUnhandledErrorListener
in interface ErrorListenerEnsembleable<byte[]>
listener
- the listenerpublic byte[] forEnsemble() throws Exception
forEnsemble
in interface Ensembleable<byte[]>
Exception
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.