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[]>>
public class GetConfigBuilderImpl extends java.lang.Object implements GetConfigBuilder, ErrorListenerEnsembleable<byte[]>
-
-
Constructor Summary
Constructors Constructor Description GetConfigBuilderImpl(CuratorFrameworkImpl client)GetConfigBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, org.apache.zookeeper.Watcher watcher, org.apache.zookeeper.data.Stat stat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]forEnsemble()ErrorListenerEnsembleable<byte[]>inBackground()Perform the action in the backgroundErrorListenerEnsembleable<byte[]>inBackground(java.lang.Object context)Perform the action in the backgroundErrorListenerEnsembleable<byte[]>inBackground(BackgroundCallback callback)Perform the action in the backgroundErrorListenerEnsembleable<byte[]>inBackground(BackgroundCallback callback, java.lang.Object context)Perform the action in the backgroundErrorListenerEnsembleable<byte[]>inBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)Perform the action in the backgroundErrorListenerEnsembleable<byte[]>inBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)Perform the action in the backgroundvoidperformBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.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[]>withUnhandledErrorListener(UnhandledErrorListener listener)Set an error listener for this background operation.
-
-
-
Constructor Detail
-
GetConfigBuilderImpl
public GetConfigBuilderImpl(CuratorFrameworkImpl client)
-
GetConfigBuilderImpl
public GetConfigBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, org.apache.zookeeper.Watcher watcher, org.apache.zookeeper.data.Stat stat)
-
-
Method Detail
-
storingStatIn
public WatchBackgroundEnsembleable<byte[]> storingStatIn(org.apache.zookeeper.data.Stat stat)
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
public BackgroundEnsembleable<byte[]> watched()
Description copied from interface:WatchableHave the operation set a watch- Specified by:
watchedin interfaceWatchable<BackgroundEnsembleable<byte[]>>- Returns:
- this
-
usingWatcher
public BackgroundEnsembleable<byte[]> usingWatcher(org.apache.zookeeper.Watcher watcher)
Description copied from interface:WatchableSet a watcher for the operation- Specified by:
usingWatcherin interfaceWatchable<BackgroundEnsembleable<byte[]>>- Parameters:
watcher- the watcher- Returns:
- this
-
usingWatcher
public BackgroundEnsembleable<byte[]> usingWatcher(CuratorWatcher watcher)
Description copied from interface:WatchableSet a watcher for the operation- Specified by:
usingWatcherin interfaceWatchable<BackgroundEnsembleable<byte[]>>- Parameters:
watcher- the watcher- Returns:
- this
-
inBackground
public ErrorListenerEnsembleable<byte[]> inBackground()
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerEnsembleable<byte[]>>- Returns:
- this
-
inBackground
public ErrorListenerEnsembleable<byte[]> inBackground(java.lang.Object context)
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
public ErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback)
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
public ErrorListenerEnsembleable<byte[]> inBackground(BackgroundCallback callback, java.lang.Object context)
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, java.util.concurrent.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, java.lang.Object context, java.util.concurrent.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
public Ensembleable<byte[]> withUnhandledErrorListener(UnhandledErrorListener listener)
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
public byte[] forEnsemble() throws java.lang.Exception- Specified by:
forEnsemblein interfaceEnsembleable<byte[]>- Throws:
java.lang.Exception
-
performBackgroundOperation
public void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.Void> operationAndData) throws java.lang.Exception- Throws:
java.lang.Exception
-
-