Backgroundable<DeleteBuilderMain>, BackgroundPathable<DeleteBuilderMain>, BackgroundVersionable, ChildrenDeletable, DeleteBuilder, DeleteBuilderMain, ErrorListenerPathable<java.lang.Void>, Guaranteeable<DeleteBuilderMain>, GuaranteeableDeletable, Pathable<DeleteBuilderMain>, Quietly<DeleteBuilderMain>, Versionable<DeleteBuilderMain>public class DeleteBuilderImpl extends java.lang.Object implements DeleteBuilder, ErrorListenerPathable<java.lang.Void>
| Constructor | Description |
|---|---|
DeleteBuilderImpl(CuratorFrameworkImpl client,
int version,
Backgrounding backgrounding,
boolean deletingChildrenIfNeeded,
boolean guaranteed,
boolean quietly) |
| Modifier and Type | Method | Description |
|---|---|---|
BackgroundVersionable |
deletingChildrenIfNeeded() |
Will also delete children if they exist.
|
java.lang.Void |
forPath(java.lang.String path) |
Commit the currently building operation using the given path
|
protected int |
getVersion() |
|
ChildrenDeletable |
guaranteed() |
Solves edge cases where an operation may succeed on the server but connection failure occurs before a
response can be successfully returned to the client.
|
ErrorListenerPathable<java.lang.Void> |
inBackground() |
Perform the action in the background
|
ErrorListenerPathable<java.lang.Void> |
inBackground(java.lang.Object context) |
Perform the action in the background
|
ErrorListenerPathable<java.lang.Void> |
inBackground(BackgroundCallback callback) |
Perform the action in the background
|
ErrorListenerPathable<java.lang.Void> |
inBackground(BackgroundCallback callback,
java.lang.Object context) |
Perform the action in the background
|
ErrorListenerPathable<java.lang.Void> |
inBackground(BackgroundCallback callback,
java.lang.Object context,
java.util.concurrent.Executor executor) |
Perform the action in the background
|
ErrorListenerPathable<java.lang.Void> |
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) |
|
DeleteBuilderMain |
quietly() |
|
Pathable<java.lang.Void> |
withUnhandledErrorListener(UnhandledErrorListener listener) |
Set an error listener for this background operation.
|
BackgroundPathable<java.lang.Void> |
withVersion(int version) |
Use the given version (the default is -1)
|
public DeleteBuilderImpl(CuratorFrameworkImpl client, int version, Backgrounding backgrounding, boolean deletingChildrenIfNeeded, boolean guaranteed, boolean quietly)
public DeleteBuilderMain quietly()
quietly in interface Quietly<DeleteBuilderMain>public ChildrenDeletable guaranteed()
Guaranteeableguaranteed in interface Guaranteeable<DeleteBuilderMain>GuaranteeableDeletablepublic BackgroundVersionable deletingChildrenIfNeeded()
ChildrenDeletableWill also delete children if they exist.
deletingChildrenIfNeeded in interface ChildrenDeletablepublic BackgroundPathable<java.lang.Void> withVersion(int version)
VersionablewithVersion in interface Versionable<DeleteBuilderMain>version - version to usepublic ErrorListenerPathable<java.lang.Void> inBackground(BackgroundCallback callback, java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<DeleteBuilderMain>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<java.lang.Void> inBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<DeleteBuilderMain>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<java.lang.Void> inBackground(BackgroundCallback callback)
BackgroundableinBackground in interface Backgroundable<DeleteBuilderMain>callback - a functor that will get called when the operation has completedpublic ErrorListenerPathable<java.lang.Void> inBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)
BackgroundableinBackground in interface Backgroundable<DeleteBuilderMain>callback - a functor that will get called when the operation has completedexecutor - executor to use for the background callpublic ErrorListenerPathable<java.lang.Void> inBackground()
BackgroundableinBackground in interface Backgroundable<DeleteBuilderMain>public ErrorListenerPathable<java.lang.Void> inBackground(java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<DeleteBuilderMain>context - context object - will be available from the event sent to the listenerpublic Pathable<java.lang.Void> withUnhandledErrorListener(UnhandledErrorListener listener)
ErrorListenerPathablewithUnhandledErrorListener in interface ErrorListenerPathable<java.lang.Void>listener - the listenerpublic void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Void forPath(java.lang.String path)
throws java.lang.Exception
PathableforPath in interface Pathable<DeleteBuilderMain>path - the pathjava.lang.Exception - errorsprotected int getVersion()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.