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)
ACLable
ZooDefs.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)
Versionable
withVersion
in interface Versionable<ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>>>
version
- version to usepublic ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground()
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerPathable<org.apache.zookeeper.data.Stat>>
public ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground(Object context)
Backgroundable
inBackground
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)
Backgroundable
inBackground
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)
Backgroundable
inBackground
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)
Backgroundable
inBackground
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)
Backgroundable
inBackground
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)
ErrorListenerPathable
withUnhandledErrorListener
in interface ErrorListenerPathable<org.apache.zookeeper.data.Stat>
listener
- the listenerpublic org.apache.zookeeper.data.Stat forPath(String path) throws Exception
Pathable
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.