Backgroundable<java.lang.Void>, BackgroundPathable<java.lang.Void>, BackgroundPathableQuietlyable<java.lang.Void>, ErrorListenerPathable<java.lang.Void>, Guaranteeable<java.lang.Void>, Pathable<java.lang.Void>, Quietly<java.lang.Void>, RemoveWatchesBuilder, RemoveWatchesLocal, RemoveWatchesTypepublic class RemoveWatchesBuilderImpl extends java.lang.Object implements RemoveWatchesBuilder, RemoveWatchesType, RemoveWatchesLocal, ErrorListenerPathable<java.lang.Void>
| Constructor | Description |
|---|---|
RemoveWatchesBuilderImpl(CuratorFrameworkImpl client) |
|
RemoveWatchesBuilderImpl(CuratorFrameworkImpl client,
org.apache.zookeeper.Watcher watcher,
CuratorWatcher curatorWatcher,
org.apache.zookeeper.Watcher.WatcherType watcherType,
boolean guaranteed,
boolean local,
boolean quietly,
Backgrounding backgrounding) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Void |
forPath(java.lang.String path) |
Commit the currently building operation using the given path
|
RemoveWatchesLocal |
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
|
BackgroundPathableQuietlyable<java.lang.Void> |
locally() |
Specify if the client should just remove client side watches if a connection to ZK
is not available.
|
RemoveWatchesLocal |
ofType(org.apache.zookeeper.Watcher.WatcherType watcherType) |
Specify the type of watcher to be removed.
|
void |
performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData) |
|
BackgroundPathable<java.lang.Void> |
quietly() |
|
RemoveWatchesType |
remove(CuratorWatcher watcher) |
Specify the watcher to be removed
|
RemoveWatchesType |
remove(org.apache.zookeeper.Watcher watcher) |
Specify the watcher to be removed
|
RemoveWatchesType |
removeAll() |
Specify that all watches should be removed
|
Pathable<java.lang.Void> |
withUnhandledErrorListener(UnhandledErrorListener listener) |
Set an error listener for this background operation.
|
public RemoveWatchesBuilderImpl(CuratorFrameworkImpl client)
public RemoveWatchesBuilderImpl(CuratorFrameworkImpl client, org.apache.zookeeper.Watcher watcher, CuratorWatcher curatorWatcher, org.apache.zookeeper.Watcher.WatcherType watcherType, boolean guaranteed, boolean local, boolean quietly, Backgrounding backgrounding)
public RemoveWatchesType remove(org.apache.zookeeper.Watcher watcher)
RemoveWatchesBuilderremove in interface RemoveWatchesBuilderpublic RemoveWatchesType remove(CuratorWatcher watcher)
RemoveWatchesBuilderremove in interface RemoveWatchesBuilderpublic RemoveWatchesType removeAll()
RemoveWatchesBuilderremoveAll in interface RemoveWatchesBuilderpublic RemoveWatchesLocal ofType(org.apache.zookeeper.Watcher.WatcherType watcherType)
RemoveWatchesTypeofType in interface RemoveWatchesTypepublic ErrorListenerPathable<java.lang.Void> inBackground(BackgroundCallback callback, java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<java.lang.Void>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<java.lang.Void>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<java.lang.Void>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<java.lang.Void>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<java.lang.Void>public ErrorListenerPathable<java.lang.Void> inBackground(java.lang.Object context)
BackgroundableinBackground in interface Backgroundable<java.lang.Void>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 RemoveWatchesLocal guaranteed()
Guaranteeableguaranteed in interface Guaranteeable<java.lang.Void>GuaranteeableDeletablepublic BackgroundPathableQuietlyable<java.lang.Void> locally()
RemoveWatchesLocallocally in interface RemoveWatchesLocalpublic BackgroundPathable<java.lang.Void> quietly()
public java.lang.Void forPath(java.lang.String path)
throws java.lang.Exception
Pathablepublic void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.