ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>>, Backgroundable<BackgroundPathable<org.apache.zookeeper.data.Stat>>, BackgroundPathable<org.apache.zookeeper.data.Stat>, ErrorListenerPathable<org.apache.zookeeper.data.Stat>, Pathable<BackgroundPathable<org.apache.zookeeper.data.Stat>>, SetACLBuilder, Versionable<BackgroundPathable<org.apache.zookeeper.data.Stat>>public class SetACLBuilderImpl extends java.lang.Object implements SetACLBuilder, BackgroundPathable<org.apache.zookeeper.data.Stat>, ErrorListenerPathable<org.apache.zookeeper.data.Stat>
| Constructor | Description |
|---|---|
SetACLBuilderImpl(CuratorFrameworkImpl client,
Backgrounding backgrounding,
java.util.List<org.apache.zookeeper.data.ACL> aclList,
int version) |
| Modifier and Type | Method | Description |
|---|---|---|
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> |
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.
|
ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>> |
withVersion(int version) |
Use the given version (the default is -1)
|
public SetACLBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, java.util.List<org.apache.zookeeper.data.ACL> aclList, int version)
public BackgroundPathable<org.apache.zookeeper.data.Stat> 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 ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>> withVersion(int version)
VersionablewithVersion in interface Versionable<BackgroundPathable<org.apache.zookeeper.data.Stat>>version - version to usepublic 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 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.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, 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 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(java.lang.String path)
throws java.lang.Exception
PathableforPath in interface Pathable<BackgroundPathable<org.apache.zookeeper.data.Stat>>path - the pathjava.lang.Exception - errorspublic void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.