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() |
CuratorEventType |
getBackgroundEventType()
Most events are delivered by operations themselves, so they know their event types.
|
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)
StatablestoringStatIn in interface Statable<WatchBackgroundEnsembleable<byte[]>>stat - the stat to have filled inpublic BackgroundEnsembleable<byte[]> watched()
Watchablewatched in interface Watchable<BackgroundEnsembleable<byte[]>>public BackgroundEnsembleable<byte[]> usingWatcher(org.apache.zookeeper.Watcher watcher)
WatchableBaseusingWatcher in interface WatchableBase<BackgroundEnsembleable<byte[]>>watcher - the watcherpublic BackgroundEnsembleable<byte[]> usingWatcher(CuratorWatcher watcher)
WatchableBaseusingWatcher in interface WatchableBase<BackgroundEnsembleable<byte[]>>watcher - the watcherpublic ErrorListenerEnsembleable<byte[]> inBackground()
BackgroundableinBackground in interface Backgroundable<ErrorListenerEnsembleable<byte[]>>public ErrorListenerEnsembleable<byte[]> inBackground(Object context)
BackgroundableinBackground in interface Backgroundable<ErrorListenerEnsembleable<byte[]>>context - context object - will be available from the event sent to the listenerpublic ErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback)
BackgroundableinBackground in interface Backgroundable<ErrorListenerEnsembleable<byte[]>>callback - a functor that will get called when the operation has completedpublic ErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback, Object context)
BackgroundableinBackground 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)
BackgroundableinBackground 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)
BackgroundableinBackground 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)
ErrorListenerEnsembleablewithUnhandledErrorListener in interface ErrorListenerEnsembleable<byte[]>listener - the listenerpublic byte[] forEnsemble()
throws Exception
forEnsemble in interface Ensembleable<byte[]>Exceptionpublic CuratorEventType getBackgroundEventType()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.