public class SetACLBuilderImpl extends Object implements SetACLBuilder, BackgroundPathable<org.apache.zookeeper.data.Stat>, ErrorListenerPathable<org.apache.zookeeper.data.Stat>
| Constructor and Description |
|---|
SetACLBuilderImpl(CuratorFrameworkImpl client,
Backgrounding backgrounding,
List<org.apache.zookeeper.data.ACL> aclList,
int version) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.zookeeper.data.Stat |
forPath(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(BackgroundCallback callback)
Perform the action in the background
|
ErrorListenerPathable<org.apache.zookeeper.data.Stat> |
inBackground(BackgroundCallback callback,
Executor executor)
Perform the action in the background
|
ErrorListenerPathable<org.apache.zookeeper.data.Stat> |
inBackground(BackgroundCallback callback,
Object context)
Perform the action in the background
|
ErrorListenerPathable<org.apache.zookeeper.data.Stat> |
inBackground(BackgroundCallback callback,
Object context,
Executor executor)
Perform the action in the background
|
ErrorListenerPathable<org.apache.zookeeper.data.Stat> |
inBackground(Object context)
Perform the action in the background
|
void |
performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) |
BackgroundPathable<org.apache.zookeeper.data.Stat> |
withACL(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.
|
ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>> |
withVersion(int version)
Use the given version (the default is -1)
|
public SetACLBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, List<org.apache.zookeeper.data.ACL> aclList, int version)
public BackgroundPathable<org.apache.zookeeper.data.Stat> withACL(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 ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>> withVersion(int version)
VersionablewithVersion in interface Versionable<ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>>>version - version to usepublic ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground()
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<org.apache.zookeeper.data.Stat>>public ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground(Object context)
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<org.apache.zookeeper.data.Stat>>context - context object - will be available from the event sent to the listenerpublic ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground(BackgroundCallback callback)
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<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, Object context)
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<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, Object context, Executor executor)
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<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, Executor executor)
BackgroundableinBackground in interface Backgroundable<ErrorListenerPathable<org.apache.zookeeper.data.Stat>>callback - a functor that will get called when the operation has completedexecutor - executor to use for the background callpublic Pathable<org.apache.zookeeper.data.Stat> withUnhandledErrorListener(UnhandledErrorListener listener)
ErrorListenerPathablewithUnhandledErrorListener in interface ErrorListenerPathable<org.apache.zookeeper.data.Stat>listener - the listenerpublic org.apache.zookeeper.data.Stat forPath(String path) throws Exception
PathableCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.