Class GetConfigBuilderImpl
java.lang.Object
org.apache.curator.framework.imps.GetConfigBuilderImpl
- All Implemented Interfaces:
Backgroundable<ErrorListenerEnsembleable<byte[]>>,Ensembleable<byte[]>,ErrorListenerEnsembleable<byte[]>,GetConfigBuilder,Statable<WatchBackgroundEnsembleable<byte[]>>,Watchable<BackgroundEnsembleable<byte[]>>,WatchableBase<BackgroundEnsembleable<byte[]>>
public class GetConfigBuilderImpl
extends Object
implements GetConfigBuilder, ErrorListenerEnsembleable<byte[]>
-
Constructor Summary
ConstructorsConstructorDescriptionGetConfigBuilderImpl(CuratorFrameworkBase client, Backgrounding backgrounding, org.apache.zookeeper.Watcher watcher, org.apache.zookeeper.data.Stat stat) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]ErrorListenerEnsembleable<byte[]> Perform the action in the backgroundErrorListenerEnsembleable<byte[]> inBackground(Object context) Perform the action in the backgroundErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback) Perform the action in the backgroundErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback, Object context) Perform the action in the backgroundErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback, Object context, Executor executor) Perform the action in the backgroundErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback, Executor executor) Perform the action in the backgroundvoidperformBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<Void> operationAndData) WatchBackgroundEnsembleable<byte[]> storingStatIn(org.apache.zookeeper.data.Stat stat) Have the operation fill the provided stat objectBackgroundEnsembleable<byte[]> usingWatcher(CuratorWatcher watcher) Set a watcher for the operationBackgroundEnsembleable<byte[]> usingWatcher(org.apache.zookeeper.Watcher watcher) Set a watcher for the operationBackgroundEnsembleable<byte[]> watched()Have the operation set a watchEnsembleable<byte[]> Set an error listener for this background operation.
-
Constructor Details
-
GetConfigBuilderImpl
-
GetConfigBuilderImpl
public GetConfigBuilderImpl(CuratorFrameworkBase client, Backgrounding backgrounding, org.apache.zookeeper.Watcher watcher, org.apache.zookeeper.data.Stat stat)
-
-
Method Details
-
storingStatIn
Description copied from interface:StatableHave the operation fill the provided stat object- Specified by:
storingStatInin interfaceStatable<WatchBackgroundEnsembleable<byte[]>>- Parameters:
stat- the stat to have filled in- Returns:
- this
-
watched
Description copied from interface:WatchableHave the operation set a watch- Specified by:
watchedin interfaceWatchable<BackgroundEnsembleable<byte[]>>- Returns:
- this
-
usingWatcher
Description copied from interface:WatchableBaseSet a watcher for the operation- Specified by:
usingWatcherin interfaceWatchableBase<BackgroundEnsembleable<byte[]>>- Parameters:
watcher- the watcher- Returns:
- this
-
usingWatcher
Description copied from interface:WatchableBaseSet a watcher for the operation- Specified by:
usingWatcherin interfaceWatchableBase<BackgroundEnsembleable<byte[]>>- Parameters:
watcher- the watcher- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerEnsembleable<byte[]>>- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerEnsembleable<byte[]>>- Parameters:
context- context object - will be available from the event sent to the listener- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerEnsembleable<byte[]>>- Parameters:
callback- a functor that will get called when the operation has completed- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerEnsembleable<byte[]>>- 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 ErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback, Executor executor) Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerEnsembleable<byte[]>>- Parameters:
callback- a functor that will get called when the operation has completedexecutor- executor to use for the background call- Returns:
- this
-
inBackground
public ErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback, Object context, Executor executor) Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerEnsembleable<byte[]>>- 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
-
withUnhandledErrorListener
Description copied from interface:ErrorListenerEnsembleableSet 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 interfaceErrorListenerEnsembleable<byte[]>- Parameters:
listener- the listener- Returns:
- this for chaining
-
forEnsemble
- Specified by:
forEnsemblein interfaceEnsembleable<byte[]>- Throws:
Exception
-
getBackgroundEventType
-
performBackgroundOperation
public void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<Void> operationAndData) throws Exception - Throws:
Exception
-