public class ZooKeeperSessionWatcher extends Object implements Watcher, AsyncCallback.StatCallback, Runnable, Closeable
| Modifier and Type | Class and Description |
|---|---|
static interface |
ZooKeeperSessionWatcher.ShutdownService |
Watcher.Event, Watcher.WatcherTypeAsyncCallback.ACLCallback, AsyncCallback.AllChildrenNumberCallback, AsyncCallback.Children2Callback, AsyncCallback.ChildrenCallback, AsyncCallback.Create2Callback, AsyncCallback.DataCallback, AsyncCallback.EphemeralsCallback, AsyncCallback.MultiCallback, AsyncCallback.StatCallback, AsyncCallback.StringCallback, AsyncCallback.VoidCallback| Constructor and Description |
|---|
ZooKeeperSessionWatcher(ZooKeeper zk,
long zkSessionTimeoutMillis,
ZookeeperSessionExpiredHandler sessionExpiredHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Watcher.Event.KeeperState |
getKeeperState() |
boolean |
isShutdownStarted() |
void |
process(WatchedEvent event) |
void |
processResult(int rc,
String path,
Object ctx,
org.apache.zookeeper.data.Stat stat) |
void |
run() |
void |
start() |
public ZooKeeperSessionWatcher(ZooKeeper zk, long zkSessionTimeoutMillis, ZookeeperSessionExpiredHandler sessionExpiredHandler)
public void start()
public Watcher.Event.KeeperState getKeeperState()
public boolean isShutdownStarted()
public void process(WatchedEvent event)
public void processResult(int rc,
String path,
Object ctx,
org.apache.zookeeper.data.Stat stat)
processResult in interface AsyncCallback.StatCallbackpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2017–2021 Apache Software Foundation. All rights reserved.