Backgroundable<BackgroundPathable<byte[]>>, BackgroundPathable<BackgroundPathable<byte[]>>, Decompressible<BackgroundPathable<byte[]>>, ErrorListenerPathable<byte[]>, GetDataBuilder, Pathable<BackgroundPathable<byte[]>>, Statable<BackgroundPathable<byte[]>>, Watchable<BackgroundPathable<byte[]>>public class GetDataBuilderImpl extends java.lang.Object implements GetDataBuilder, ErrorListenerPathable<byte[]>
| Constructor | Description |
|---|---|
GetDataBuilderImpl(CuratorFrameworkImpl client,
org.apache.zookeeper.data.Stat responseStat,
org.apache.zookeeper.Watcher watcher,
Backgrounding backgrounding,
boolean decompress) |
| Modifier and Type | Method | Description |
|---|---|---|
GetDataWatchBackgroundStatable |
decompressed() |
Cause the data to be de-compressed using the configured compression provider
|
byte[] |
forPath(java.lang.String path) |
Commit the currently building operation using the given path
|
ErrorListenerPathable<byte[]> |
inBackground() |
Perform the action in the background
|
ErrorListenerPathable<byte[]> |
inBackground(java.lang.Object context) |
Perform the action in the background
|
ErrorListenerPathable<byte[]> |
inBackground(BackgroundCallback callback) |
Perform the action in the background
|
ErrorListenerPathable<byte[]> |
inBackground(BackgroundCallback callback,
java.lang.Object context) |
Perform the action in the background
|
ErrorListenerPathable<byte[]> |
inBackground(BackgroundCallback callback,
java.lang.Object context,
java.util.concurrent.Executor executor) |
Perform the action in the background
|
ErrorListenerPathable<byte[]> |
inBackground(BackgroundCallback callback,
java.util.concurrent.Executor executor) |
Perform the action in the background
|
void |
performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData) |
|
WatchPathable<byte[]> |
storingStatIn(org.apache.zookeeper.data.Stat stat) |
Have the operation fill the provided stat object
|
BackgroundPathable<byte[]> |
usingWatcher(CuratorWatcher watcher) |
Set a watcher for the operation
|
BackgroundPathable<byte[]> |
usingWatcher(org.apache.zookeeper.Watcher watcher) |
Set a watcher for the operation
|
BackgroundPathable<byte[]> |
watched() |
Have the operation set a watch
|
Pathable<byte[]> |
withUnhandledErrorListener(UnhandledErrorListener listener) |
Set an error listener for this background operation.
|
public GetDataBuilderImpl(CuratorFrameworkImpl client, org.apache.zookeeper.data.Stat responseStat, org.apache.zookeeper.Watcher watcher, Backgrounding backgrounding, boolean decompress)
public GetDataWatchBackgroundStatable decompressed()
Decompressibledecompressed in interface Decompressible<BackgroundPathable<byte[]>>public WatchPathable<byte[]> storingStatIn(org.apache.zookeeper.data.Stat stat)
StatablestoringStatIn in interface Statable<BackgroundPathable<byte[]>>stat - the stat to have filled inpublic ErrorListenerPathable<byte[]> inBackground(BackgroundCallback callback, java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<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 ErrorListenerPathable<byte[]> inBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<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 ErrorListenerPathable<byte[]> inBackground(BackgroundCallback callback)
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<byte[]>>callback - a functor that will get called when the operation has completedpublic ErrorListenerPathable<byte[]> inBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<byte[]>>callback - a functor that will get called when the operation has completedexecutor - executor to use for the background callpublic ErrorListenerPathable<byte[]> inBackground()
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<byte[]>>public ErrorListenerPathable<byte[]> inBackground(java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<byte[]>>context - context object - will be available from the event sent to the listenerpublic Pathable<byte[]> withUnhandledErrorListener(UnhandledErrorListener listener)
ErrorListenerPathablewithUnhandledErrorListener in interface ErrorListenerPathable<byte[]>listener - the listenerpublic BackgroundPathable<byte[]> watched()
Watchablewatched in interface Watchable<BackgroundPathable<byte[]>>public BackgroundPathable<byte[]> usingWatcher(org.apache.zookeeper.Watcher watcher)
WatchableusingWatcher in interface Watchable<BackgroundPathable<byte[]>>watcher - the watcherpublic BackgroundPathable<byte[]> usingWatcher(CuratorWatcher watcher)
WatchableusingWatcher in interface Watchable<BackgroundPathable<byte[]>>watcher - the watcherpublic void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData)
throws java.lang.Exception
java.lang.Exceptionpublic byte[] forPath(java.lang.String path)
throws java.lang.Exception
PathableforPath in interface Pathable<BackgroundPathable<byte[]>>path - the pathjava.lang.Exception - errorsCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.