Class GetACLBuilderImpl
java.lang.Object
org.apache.curator.framework.imps.GetACLBuilderImpl
- All Implemented Interfaces:
Backgroundable<ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>>>
,BackgroundPathable<List<org.apache.zookeeper.data.ACL>>
,ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>>
,GetACLBuilder
,Pathable<List<org.apache.zookeeper.data.ACL>>
,Statable<Pathable<List<org.apache.zookeeper.data.ACL>>>
public class GetACLBuilderImpl
extends Object
implements GetACLBuilder, ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>>
-
Constructor Summary
ConstructorDescriptionGetACLBuilderImpl
(CuratorFrameworkImpl client, Backgrounding backgrounding, org.apache.zookeeper.data.Stat responseStat) -
Method Summary
Modifier and TypeMethodDescriptionList
<org.apache.zookeeper.data.ACL> Commit the currently building operation using the given pathErrorListenerPathable
<List<org.apache.zookeeper.data.ACL>> Perform the action in the backgroundErrorListenerPathable
<List<org.apache.zookeeper.data.ACL>> inBackground
(Object context) Perform the action in the backgroundErrorListenerPathable
<List<org.apache.zookeeper.data.ACL>> inBackground
(BackgroundCallback callback) Perform the action in the backgroundErrorListenerPathable
<List<org.apache.zookeeper.data.ACL>> inBackground
(BackgroundCallback callback, Object context) Perform the action in the backgroundErrorListenerPathable
<List<org.apache.zookeeper.data.ACL>> inBackground
(BackgroundCallback callback, Object context, Executor executor) Perform the action in the backgroundErrorListenerPathable
<List<org.apache.zookeeper.data.ACL>> inBackground
(BackgroundCallback callback, Executor executor) Perform the action in the backgroundvoid
performBackgroundOperation
(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) storingStatIn
(org.apache.zookeeper.data.Stat stat) Have the operation fill the provided stat objectSet an error listener for this background operation.
-
Constructor Details
-
GetACLBuilderImpl
public GetACLBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, org.apache.zookeeper.data.Stat responseStat)
-
-
Method Details
-
inBackground
public ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>> inBackground(BackgroundCallback callback, Object context) Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>>>
- 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<List<org.apache.zookeeper.data.ACL>> inBackground(BackgroundCallback callback, Object context, Executor executor) Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>>>
- 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
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>>>
- Returns:
- this
-
inBackground
Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>>>
- Parameters:
context
- context object - will be available from the event sent to the listener- Returns:
- this
-
inBackground
public ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>> inBackground(BackgroundCallback callback) Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>>>
- Parameters:
callback
- a functor that will get called when the operation has completed- Returns:
- this
-
inBackground
public ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>> inBackground(BackgroundCallback callback, Executor executor) Description copied from interface:Backgroundable
Perform the action in the background- Specified by:
inBackground
in interfaceBackgroundable<ErrorListenerPathable<List<org.apache.zookeeper.data.ACL>>>
- 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<List<org.apache.zookeeper.data.ACL>> 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<List<org.apache.zookeeper.data.ACL>>
- Parameters:
listener
- the listener- Returns:
- this for chaining
-
storingStatIn
public Pathable<List<org.apache.zookeeper.data.ACL>> storingStatIn(org.apache.zookeeper.data.Stat stat) Description copied from interface:Statable
Have the operation fill the provided stat object- Specified by:
storingStatIn
in interfaceStatable<Pathable<List<org.apache.zookeeper.data.ACL>>>
- Parameters:
stat
- the stat to have filled in- Returns:
- this
-
getBackgroundEventType
-
performBackgroundOperation
public void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) throws Exception - Throws:
Exception
-
forPath
Description copied from interface:Pathable
Commit the currently building operation using the given path
-