下面列出了org.apache.zookeeper.Watcher#WatcherType ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@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;
}
@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;
}
@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;
}
@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;
}
@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;
}
@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;
}
/**
* 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);
/**
* 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);
/**
* 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);
/**
* 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);
/**
* 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);
/**
* Remove all watchers of a given type
*
* @param watcherType watcher type
* @return this
*/
AsyncPathable<AsyncStage<Void>> removingAll(Watcher.WatcherType watcherType);