Java Code Examples for org.apache.zookeeper.Watcher#WatcherType

The following examples show how to use org.apache.zookeeper.Watcher#WatcherType . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AsyncRemoveWatchesBuilderImpl.java    From curator with Apache License 2.0 5 votes vote down vote up
@Override
public AsyncPathable<AsyncStage<Void>> removing(Watcher watcher, Watcher.WatcherType watcherType, Set<RemoveWatcherOption> options)
{
    this.watcher = Objects.requireNonNull(watcher, "watcher cannot be null");
    this.options = Objects.requireNonNull(options, "options cannot be null");
    this.watcherType = Objects.requireNonNull(watcherType, "watcherType cannot be null");
    this.curatorWatcher = null;
    return this;
}
 
Example 2
Source File: AsyncRemoveWatchesBuilderImpl.java    From curator with Apache License 2.0 5 votes vote down vote up
@Override
public AsyncPathable<AsyncStage<Void>> removing(CuratorWatcher watcher, Watcher.WatcherType watcherType, Set<RemoveWatcherOption> options)
{
    this.curatorWatcher = Objects.requireNonNull(watcher, "watcher cannot be null");
    this.options = Objects.requireNonNull(options, "options cannot be null");
    this.watcherType = Objects.requireNonNull(watcherType, "watcherType cannot be null");
    this.watcher = null;
    return this;
}
 
Example 3
Source File: AsyncRemoveWatchesBuilderImpl.java    From curator with Apache License 2.0 5 votes vote down vote up
@Override
public AsyncPathable<AsyncStage<Void>> removingAll(Watcher.WatcherType watcherType, Set<RemoveWatcherOption> options)
{
    this.options = Objects.requireNonNull(options, "options cannot be null");
    this.watcherType = Objects.requireNonNull(watcherType, "watcherType cannot be null");
    this.curatorWatcher = null;
    this.watcher = null;
    return this;
}
 
Example 4
Source File: AsyncRemoveWatchesBuilderImpl.java    From curator with Apache License 2.0 5 votes vote down vote up
@Override
public AsyncPathable<AsyncStage<Void>> removing(Watcher watcher, Watcher.WatcherType watcherType)
{
    this.watcher = Objects.requireNonNull(watcher, "watcher cannot be null");
    this.watcherType = Objects.requireNonNull(watcherType, "watcherType cannot be null");
    this.curatorWatcher = null;
    return this;
}
 
Example 5
Source File: AsyncRemoveWatchesBuilderImpl.java    From curator with Apache License 2.0 5 votes vote down vote up
@Override
public AsyncPathable<AsyncStage<Void>> removing(CuratorWatcher watcher, Watcher.WatcherType watcherType)
{
    this.curatorWatcher = Objects.requireNonNull(watcher, "watcher cannot be null");
    this.watcherType = Objects.requireNonNull(watcherType, "watcherType cannot be null");
    this.watcher = null;
    return this;
}
 
Example 6
Source File: AsyncRemoveWatchesBuilderImpl.java    From curator with Apache License 2.0 5 votes vote down vote up
@Override
public AsyncPathable<AsyncStage<Void>> removingAll(Watcher.WatcherType watcherType)
{
    this.watcherType = Objects.requireNonNull(watcherType, "watcherType cannot be null");
    this.curatorWatcher = null;
    this.watcher = null;
    return this;
}
 
Example 7
Source File: AsyncRemoveWatchesBuilder.java    From curator with Apache License 2.0 2 votes vote down vote up
/**
 * Remove a watcher of a given type
 *
 * @param watcher the watcher to remove
 * @param watcherType watcher type
 * @param options watcher removal options
 * @return this
 */
AsyncPathable<AsyncStage<Void>> removing(Watcher watcher, Watcher.WatcherType watcherType, Set<RemoveWatcherOption> options);
 
Example 8
Source File: AsyncRemoveWatchesBuilder.java    From curator with Apache License 2.0 2 votes vote down vote up
/**
 * Remove a watcher of a given type
 *
 * @param watcher the watcher to remove
 * @param watcherType watcher type
 * @param options watcher removal options
 * @return this
 */
AsyncPathable<AsyncStage<Void>> removing(CuratorWatcher watcher, Watcher.WatcherType watcherType, Set<RemoveWatcherOption> options);
 
Example 9
Source File: AsyncRemoveWatchesBuilder.java    From curator with Apache License 2.0 2 votes vote down vote up
/**
 * Remove all watchers of a given type
 *
 * @param watcherType watcher type
 * @param options watcher removal options
 * @return this
 */
AsyncPathable<AsyncStage<Void>> removingAll(Watcher.WatcherType watcherType, Set<RemoveWatcherOption> options);
 
Example 10
Source File: AsyncRemoveWatchesBuilder.java    From curator with Apache License 2.0 2 votes vote down vote up
/**
 * Remove a watcher of a given type
 *
 * @param watcher the watcher to remove
 * @param watcherType watcher type
 * @return this
 */
AsyncPathable<AsyncStage<Void>> removing(Watcher watcher, Watcher.WatcherType watcherType);
 
Example 11
Source File: AsyncRemoveWatchesBuilder.java    From curator with Apache License 2.0 2 votes vote down vote up
/**
 * Remove a watcher of a given type
 *
 * @param watcher the watcher to remove
 * @param watcherType watcher type
 * @return this
 */
AsyncPathable<AsyncStage<Void>> removing(CuratorWatcher watcher, Watcher.WatcherType watcherType);
 
Example 12
Source File: AsyncRemoveWatchesBuilder.java    From curator with Apache License 2.0 2 votes vote down vote up
/**
 * Remove all watchers of a given type
 *
 * @param watcherType watcher type
 * @return this
 */
AsyncPathable<AsyncStage<Void>> removingAll(Watcher.WatcherType watcherType);