ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>>, ACLableExistBuilderMain, Backgroundable<BackgroundPathable<org.apache.zookeeper.data.Stat>>, BackgroundPathable<BackgroundPathable<org.apache.zookeeper.data.Stat>>, ErrorListenerPathable<org.apache.zookeeper.data.Stat>, ExistsBuilder, ExistsBuilderMain, Pathable<BackgroundPathable<org.apache.zookeeper.data.Stat>>, Watchable<BackgroundPathable<org.apache.zookeeper.data.Stat>>public class ExistsBuilderImpl extends java.lang.Object implements ExistsBuilder, ErrorListenerPathable<org.apache.zookeeper.data.Stat>, ACLableExistBuilderMain
| Constructor | Description |
|---|---|
ExistsBuilderImpl(CuratorFrameworkImpl client,
Backgrounding backgrounding,
org.apache.zookeeper.Watcher watcher,
boolean createParentsIfNeeded,
boolean createParentContainersIfNeeded) |
| Modifier and Type | Method | Description |
|---|---|---|
ACLableExistBuilderMain |
creatingParentContainersIfNeeded() |
Causes any parent nodes to get created using
CreateMode.CONTAINER if they haven't already been. |
ACLableExistBuilderMain |
creatingParentsIfNeeded() |
Causes any parent nodes to get created if they haven't already been
|
org.apache.zookeeper.data.Stat |
forPath(java.lang.String path) |
Commit the currently building operation using the given path
|
ErrorListenerPathable<org.apache.zookeeper.data.Stat> |
inBackground() |
Perform the action in the background
|
ErrorListenerPathable<org.apache.zookeeper.data.Stat> |
inBackground(java.lang.Object context) |
Perform the action in the background
|
ErrorListenerPathable<org.apache.zookeeper.data.Stat> |
inBackground(BackgroundCallback callback) |
Perform the action in the background
|
ErrorListenerPathable<org.apache.zookeeper.data.Stat> |
inBackground(BackgroundCallback callback,
java.lang.Object context) |
Perform the action in the background
|
ErrorListenerPathable<org.apache.zookeeper.data.Stat> |
inBackground(BackgroundCallback callback,
java.lang.Object context,
java.util.concurrent.Executor executor) |
Perform the action in the background
|
ErrorListenerPathable<org.apache.zookeeper.data.Stat> |
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) |
|
BackgroundPathable<org.apache.zookeeper.data.Stat> |
usingWatcher(CuratorWatcher watcher) |
Set a watcher for the operation
|
BackgroundPathable<org.apache.zookeeper.data.Stat> |
usingWatcher(org.apache.zookeeper.Watcher watcher) |
Set a watcher for the operation
|
BackgroundPathable<org.apache.zookeeper.data.Stat> |
watched() |
Have the operation set a watch
|
ExistsBuilderMain |
withACL(java.util.List<org.apache.zookeeper.data.ACL> aclList) |
Set an ACL list (default is
ZooDefs.Ids.OPEN_ACL_UNSAFE) |
Pathable<org.apache.zookeeper.data.Stat> |
withUnhandledErrorListener(UnhandledErrorListener listener) |
Set an error listener for this background operation.
|
public ExistsBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, org.apache.zookeeper.Watcher watcher, boolean createParentsIfNeeded, boolean createParentContainersIfNeeded)
public ACLableExistBuilderMain creatingParentsIfNeeded()
ExistsBuildercreatingParentsIfNeeded in interface ExistsBuilderpublic ACLableExistBuilderMain creatingParentContainersIfNeeded()
ExistsBuilderCreateMode.CONTAINER if they haven't already been.
IMPORTANT NOTE: container creation is a new feature in recent versions of ZooKeeper.
If the ZooKeeper version you're using does not support containers, the parent nodes
are created as ordinary PERSISTENT nodes.creatingParentContainersIfNeeded in interface ExistsBuilderpublic ExistsBuilderMain withACL(java.util.List<org.apache.zookeeper.data.ACL> aclList)
ACLableZooDefs.Ids.OPEN_ACL_UNSAFE)withACL in interface ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>>aclList - the ACL list to usepublic BackgroundPathable<org.apache.zookeeper.data.Stat> watched()
Watchablewatched in interface Watchable<BackgroundPathable<org.apache.zookeeper.data.Stat>>public BackgroundPathable<org.apache.zookeeper.data.Stat> usingWatcher(org.apache.zookeeper.Watcher watcher)
WatchableusingWatcher in interface Watchable<BackgroundPathable<org.apache.zookeeper.data.Stat>>watcher - the watcherpublic BackgroundPathable<org.apache.zookeeper.data.Stat> usingWatcher(CuratorWatcher watcher)
WatchableusingWatcher in interface Watchable<BackgroundPathable<org.apache.zookeeper.data.Stat>>watcher - the watcherpublic ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground(BackgroundCallback callback, java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<org.apache.zookeeper.data.Stat>>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<org.apache.zookeeper.data.Stat> inBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<org.apache.zookeeper.data.Stat>>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<org.apache.zookeeper.data.Stat> inBackground(BackgroundCallback callback)
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<org.apache.zookeeper.data.Stat>>callback - a functor that will get called when the operation has completedpublic ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<org.apache.zookeeper.data.Stat>>callback - a functor that will get called when the operation has completedexecutor - executor to use for the background callpublic ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground()
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<org.apache.zookeeper.data.Stat>>public ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground(java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<BackgroundPathable<org.apache.zookeeper.data.Stat>>context - context object - will be available from the event sent to the listenerpublic Pathable<org.apache.zookeeper.data.Stat> withUnhandledErrorListener(UnhandledErrorListener listener)
ErrorListenerPathablewithUnhandledErrorListener in interface ErrorListenerPathable<org.apache.zookeeper.data.Stat>listener - the listenerpublic void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData)
throws java.lang.Exception
java.lang.Exceptionpublic org.apache.zookeeper.data.Stat forPath(java.lang.String path)
throws java.lang.Exception
PathableforPath in interface Pathable<BackgroundPathable<org.apache.zookeeper.data.Stat>>path - the pathjava.lang.Exception - errorsCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.