Class GetDataBuilderImpl
java.lang.Object
org.apache.curator.framework.imps.GetDataBuilderImpl
- All Implemented Interfaces:
Backgroundable<ErrorListenerPathable<byte[]>>,BackgroundPathable<byte[]>,Decompressible<GetDataWatchBackgroundStatable>,ErrorListenerPathable<byte[]>,GetDataBuilder,Pathable<byte[]>,Statable<WatchPathable<byte[]>>,Watchable<BackgroundPathable<byte[]>>,WatchableBase<BackgroundPathable<byte[]>>
public class GetDataBuilderImpl
extends Object
implements GetDataBuilder, ErrorListenerPathable<byte[]>
-
Constructor Summary
ConstructorsConstructorDescriptionGetDataBuilderImpl(CuratorFrameworkBase client, org.apache.zookeeper.data.Stat responseStat, org.apache.zookeeper.Watcher watcher, Backgrounding backgrounding, boolean decompress) -
Method Summary
Modifier and TypeMethodDescriptionCause the data to be de-compressed using the configured compression providerbyte[]Commit the currently building operation using the given pathErrorListenerPathable<byte[]> Perform the action in the backgroundErrorListenerPathable<byte[]> inBackground(Object context) Perform the action in the backgroundErrorListenerPathable<byte[]> inBackground(BackgroundCallback callback) Perform the action in the backgroundErrorListenerPathable<byte[]> inBackground(BackgroundCallback callback, Object context) Perform the action in the backgroundErrorListenerPathable<byte[]> inBackground(BackgroundCallback callback, Object context, Executor executor) Perform the action in the backgroundErrorListenerPathable<byte[]> inBackground(BackgroundCallback callback, Executor executor) Perform the action in the backgroundvoidperformBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) WatchPathable<byte[]> storingStatIn(org.apache.zookeeper.data.Stat stat) Have the operation fill the provided stat objectCause the data to not be de-compressed, even if theCuratorFrameworkhas compressionEnabledBackgroundPathable<byte[]> usingWatcher(CuratorWatcher watcher) Set a watcher for the operationBackgroundPathable<byte[]> usingWatcher(org.apache.zookeeper.Watcher watcher) Set a watcher for the operationBackgroundPathable<byte[]> watched()Have the operation set a watchPathable<byte[]> Set an error listener for this background operation.
-
Constructor Details
-
GetDataBuilderImpl
public GetDataBuilderImpl(CuratorFrameworkBase client, org.apache.zookeeper.data.Stat responseStat, org.apache.zookeeper.Watcher watcher, Backgrounding backgrounding, boolean decompress)
-
-
Method Details
-
decompressed
Description copied from interface:DecompressibleCause the data to be de-compressed using the configured compression provider- Specified by:
decompressedin interfaceDecompressible<GetDataWatchBackgroundStatable>- Returns:
- this
-
undecompressed
Description copied from interface:DecompressibleCause the data to not be de-compressed, even if theCuratorFrameworkhas compressionEnabled- Specified by:
undecompressedin interfaceDecompressible<GetDataWatchBackgroundStatable>- Returns:
- this
-
storingStatIn
Description copied from interface:StatableHave the operation fill the provided stat object- Specified by:
storingStatInin interfaceStatable<WatchPathable<byte[]>>- Parameters:
stat- the stat to have filled in- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<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 ErrorListenerPathable<byte[]> inBackground(BackgroundCallback callback, Object context, Executor executor) Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<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
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<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<ErrorListenerPathable<byte[]>>- Parameters:
callback- a functor that will get called when the operation has completedexecutor- executor to use for the background call- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<byte[]>>- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<byte[]>>- Parameters:
context- context object - will be available from the event sent to the listener- Returns:
- this
-
withUnhandledErrorListener
Description copied from interface:ErrorListenerPathableSet 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 interfaceErrorListenerPathable<byte[]>- Parameters:
listener- the listener- Returns:
- this for chaining
-
watched
Description copied from interface:WatchableHave the operation set a watch- Specified by:
watchedin interfaceWatchable<BackgroundPathable<byte[]>>- Returns:
- this
-
usingWatcher
Description copied from interface:WatchableBaseSet a watcher for the operation- Specified by:
usingWatcherin interfaceWatchableBase<BackgroundPathable<byte[]>>- Parameters:
watcher- the watcher- Returns:
- this
-
usingWatcher
Description copied from interface:WatchableBaseSet a watcher for the operation- Specified by:
usingWatcherin interfaceWatchableBase<BackgroundPathable<byte[]>>- Parameters:
watcher- the watcher- Returns:
- this
-
getBackgroundEventType
-
performBackgroundOperation
public void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) throws Exception - Throws:
Exception
-
forPath
Description copied from interface:PathableCommit the currently building operation using the given path
-