public class BlockingZKWatcher extends Object implements org.apache.zookeeper.Watcher
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
BlockingZKWatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(org.apache.zookeeper.WatchedEvent event) |
void |
waitForZKConnection(int timeout)
Wait for a flag to go true
|
public void process(org.apache.zookeeper.WatchedEvent event)
process in interface org.apache.zookeeper.Watcherpublic void waitForZKConnection(int timeout)
throws InterruptedException,
ConnectException
timeout - timeout in millisInterruptedExceptionConnectExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.