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