Class SetACLBuilderImpl
java.lang.Object
org.apache.curator.framework.imps.SetACLBuilderImpl
- All Implemented Interfaces:
ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>>
,Backgroundable<ErrorListenerPathable<org.apache.zookeeper.data.Stat>>
,BackgroundPathable<org.apache.zookeeper.data.Stat>
,ErrorListenerPathable<org.apache.zookeeper.data.Stat>
,Pathable<org.apache.zookeeper.data.Stat>
,SetACLBuilder
,Versionable<ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>>>
public class SetACLBuilderImpl
extends Object
implements SetACLBuilder, BackgroundPathable<org.apache.zookeeper.data.Stat>, ErrorListenerPathable<org.apache.zookeeper.data.Stat>
-
Constructor Summary
ConstructorDescriptionSetACLBuilderImpl
(CuratorFrameworkImpl client, Backgrounding backgrounding, List<org.apache.zookeeper.data.ACL> aclList, int version) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.zookeeper.data.Stat
Commit the currently building operation using the given pathErrorListenerPathable
<org.apache.zookeeper.data.Stat> Perform the action in the backgroundErrorListenerPathable
<org.apache.zookeeper.data.Stat> inBackground
(Object context) Perform the action in the backgroundErrorListenerPathable
<org.apache.zookeeper.data.Stat> inBackground
(BackgroundCallback callback) Perform the action in the backgroundErrorListenerPathable
<org.apache.zookeeper.data.Stat> inBackground
(BackgroundCallback callback, Object context) Perform the action in the backgroundErrorListenerPathable
<org.apache.zookeeper.data.Stat> inBackground
(BackgroundCallback callback, Object context, Executor executor) Perform the action in the backgroundErrorListenerPathable
<org.apache.zookeeper.data.Stat> inBackground
(BackgroundCallback callback, Executor executor) Perform the action in the backgroundvoid
performBackgroundOperation
(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) BackgroundPathable
<org.apache.zookeeper.data.Stat> Set an ACL list (default isZooDefs.Ids.OPEN_ACL_UNSAFE
)Pathable
<org.apache.zookeeper.data.Stat> 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)
-
Constructor Details
-
SetACLBuilderImpl
public SetACLBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, List<org.apache.zookeeper.data.ACL> aclList, int version)
-
-
Method Details
-
withACL
public BackgroundPathable<org.apache.zookeeper.data.Stat> withACL(List<org.apache.zookeeper.data.ACL> aclList) Description copied from interface:ACLable
Set an ACL list (default isZooDefs.Ids.OPEN_ACL_UNSAFE
)- Specified by:
withACL
in interfaceACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>>
- Parameters:
aclList
- the ACL list to use- Returns:
- this
-
withVersion
Description copied from interface:Versionable
Use the given version (the default is -1)- Specified by:
withVersion
in interfaceVersionable<ACLable<BackgroundPathable<org.apache.zookeeper.data.Stat>>>
- Parameters:
version
- version to use- Returns:
- this
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<org.apache.zookeeper.data.Stat>>
- Returns:
- this
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<org.apache.zookeeper.data.Stat>>
- Parameters:
context
- context object - will be available from the event sent to the listener- Returns:
- this
-
inBackground
public ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground(BackgroundCallback callback) Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<org.apache.zookeeper.data.Stat>>
- Parameters:
callback
- a functor that will get called when the operation has completed- Returns:
- this
-
inBackground
public ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground(BackgroundCallback callback, Object context) Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<org.apache.zookeeper.data.Stat>>
- Parameters:
callback
- a functor that will get called when the operation has completedcontext
- context object - will be available from the event sent to the listener- Returns:
- this
-
inBackground
public ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground(BackgroundCallback callback, Object context, Executor executor) Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<org.apache.zookeeper.data.Stat>>
- Parameters:
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 call- Returns:
- this
-
inBackground
public ErrorListenerPathable<org.apache.zookeeper.data.Stat> inBackground(BackgroundCallback callback, Executor executor) Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<org.apache.zookeeper.data.Stat>>
- Parameters:
callback
- a functor that will get called when the operation has completedexecutor
- executor to use for the background call- Returns:
- this
-
withUnhandledErrorListener
public Pathable<org.apache.zookeeper.data.Stat> withUnhandledErrorListener(UnhandledErrorListener listener) Description copied from interface:ErrorListenerPathable
Set an error listener for this background operation. If an exception occurs while processing the call in the background, this listener will be called.- Specified by:
withUnhandledErrorListener
in interfaceErrorListenerPathable<org.apache.zookeeper.data.Stat>
- Parameters:
listener
- the listener- Returns:
- this for chaining
-
forPath
Description copied from interface:Pathable
Commit the currently building operation using the given path -
getBackgroundEventType
-
performBackgroundOperation
public void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) throws Exception - Throws:
Exception
-