org.apache.curator.framework.api
Interface Watchable<T>

All Known Subinterfaces:
ExistsBuilder, GetChildrenBuilder, GetDataBuilder, GetDataWatchBackgroundStatable, WatchPathable<T>

public interface Watchable<T>


Method Summary
 T usingWatcher(CuratorWatcher watcher)
          Set a watcher for the operation
 T usingWatcher(org.apache.zookeeper.Watcher watcher)
          Set a watcher for the operation
 T watched()
          Have the operation set a watch
 

Method Detail

watched

T watched()
Have the operation set a watch

Returns:
this

usingWatcher

T usingWatcher(org.apache.zookeeper.Watcher watcher)
Set a watcher for the operation

Parameters:
watcher - the watcher
Returns:
this

usingWatcher

T usingWatcher(CuratorWatcher watcher)
Set a watcher for the operation

Parameters:
watcher - the watcher
Returns:
this


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.