Class DeleteBuilderImpl
java.lang.Object
org.apache.curator.framework.imps.DeleteBuilderImpl
- All Implemented Interfaces:
Backgroundable<ErrorListenerPathable<Void>>,BackgroundPathable<Void>,BackgroundVersionable,ChildrenDeletable,DeleteBuilder,DeleteBuilderMain,ErrorListenerPathable<Void>,Guaranteeable<ChildrenDeletable>,GuaranteeableDeletable,Idempotentable<DeleteBuilderMain>,Pathable<Void>,Quietly<DeleteBuilderMain>,Versionable<BackgroundPathable<Void>>
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteBuilderImpl(CuratorFrameworkBase client, int version, Backgrounding backgrounding, boolean deletingChildrenIfNeeded, boolean guaranteed, boolean quietly) -
Method Summary
Modifier and TypeMethodDescriptionWill also delete children if they exist.Commit the currently building operation using the given pathprotected intSolves edge cases where an operation may succeed on the server but connection failure occurs before a response can be successfully returned to the client.If the first try of this operation gets a transient error, curator will retry the operation, and treat it as successful so long as the end state of the znode is the same as if the operation had completed without error on the first try.Perform the action in the backgroundinBackground(Object context) Perform the action in the backgroundinBackground(BackgroundCallback callback) Perform the action in the backgroundinBackground(BackgroundCallback callback, Object context) Perform the action in the backgroundinBackground(BackgroundCallback callback, Object context, Executor executor) Perform the action in the backgroundinBackground(BackgroundCallback callback, Executor executor) Perform the action in the backgroundvoidperformBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) quietly()Set an error listener for this background operation.withVersion(int version) Use the given version (the default is -1)
-
Constructor Details
-
DeleteBuilderImpl
public DeleteBuilderImpl(CuratorFrameworkBase client, int version, Backgrounding backgrounding, boolean deletingChildrenIfNeeded, boolean guaranteed, boolean quietly)
-
-
Method Details
-
quietly
- Specified by:
quietlyin interfaceQuietly<DeleteBuilderMain>
-
idempotent
Description copied from interface:IdempotentableIf the first try of this operation gets a transient error, curator will retry the operation, and treat it as successful so long as the end state of the znode is the same as if the operation had completed without error on the first try.- Specified by:
idempotentin interfaceIdempotentable<DeleteBuilderMain>- Returns:
- this:
-
guaranteed
Description copied from interface:GuaranteeableSolves edge cases where an operation may succeed on the server but connection failure occurs before a response can be successfully returned to the client.- Specified by:
guaranteedin interfaceGuaranteeable<ChildrenDeletable>- Returns:
- this
- See Also:
-
deletingChildrenIfNeeded
Description copied from interface:ChildrenDeletableWill also delete children if they exist.
- Specified by:
deletingChildrenIfNeededin interfaceChildrenDeletable- Returns:
-
withVersion
Description copied from interface:VersionableUse the given version (the default is -1)- Specified by:
withVersionin interfaceVersionable<BackgroundPathable<Void>>- Parameters:
version- version to use- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<Void>>- 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<Void> inBackground(BackgroundCallback callback, Object context, Executor executor) Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<Void>>- 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:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<Void>>- Parameters:
callback- a functor that will get called when the operation has completed- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<Void>>- Parameters:
callback- a functor that will get called when the operation has completedexecutor- executor to use for the background call- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<Void>>- Returns:
- this
-
inBackground
Description copied from interface:BackgroundablePerform the action in the background- Specified by:
inBackgroundin interfaceBackgroundable<ErrorListenerPathable<Void>>- Parameters:
context- context object - will be available from the event sent to the listener- Returns:
- this
-
withUnhandledErrorListener
Description copied from interface:ErrorListenerPathableSet 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:
withUnhandledErrorListenerin interfaceErrorListenerPathable<Void>- Parameters:
listener- the listener- Returns:
- this for chaining
-
getBackgroundEventType
-
performBackgroundOperation
public void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData) throws Exception - Throws:
Exception
-
forPath
Description copied from interface:PathableCommit the currently building operation using the given path -
getVersion
protected int getVersion()
-