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
ConstructorDescriptionGetConfigBuilderImpl
(CuratorFrameworkImpl 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 backgroundvoid
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 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(CuratorFrameworkImpl client, Backgrounding backgrounding, org.apache.zookeeper.Watcher watcher, org.apache.zookeeper.data.Stat stat)
-
-
Method Details
-
storingStatIn
Description copied from interface:Statable
Have the operation fill the provided stat object- Specified by:
storingStatIn
in interfaceStatable<WatchBackgroundEnsembleable<byte[]>>
- Parameters:
stat
- the stat to have filled in- Returns:
- this
-
watched
Description copied from interface:Watchable
Have the operation set a watch- Specified by:
watched
in interfaceWatchable<BackgroundEnsembleable<byte[]>>
- Returns:
- this
-
usingWatcher
Description copied from interface:WatchableBase
Set a watcher for the operation- Specified by:
usingWatcher
in interfaceWatchableBase<BackgroundEnsembleable<byte[]>>
- Parameters:
watcher
- the watcher- Returns:
- this
-
usingWatcher
Description copied from interface:WatchableBase
Set a watcher for the operation- Specified by:
usingWatcher
in interfaceWatchableBase<BackgroundEnsembleable<byte[]>>
- Parameters:
watcher
- the watcher- Returns:
- this
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerEnsembleable<byte[]>>
- Returns:
- this
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerEnsembleable<byte[]>>
- Parameters:
context
- context object - will be available from the event sent to the listener- Returns:
- this
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerEnsembleable<byte[]>>
- Parameters:
callback
- a functor that will get called when the operation has completed- Returns:
- this
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in 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:Backgroundable
Perform the action in the background- Specified by:
inBackground
in 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:Backgroundable
Perform the action in the background- Specified by:
inBackground
in 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:ErrorListenerEnsembleable
Set 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:
withUnhandledErrorListener
in interfaceErrorListenerEnsembleable<byte[]>
- Parameters:
listener
- the listener- Returns:
- this for chaining
-
forEnsemble
- Specified by:
forEnsemble
in interfaceEnsembleable<byte[]>
- Throws:
Exception
-
getBackgroundEventType
-
performBackgroundOperation
public void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<Void> operationAndData) throws Exception - Throws:
Exception
-