public class NodePoolRequestStateWatcher extends Object implements org.apache.curator.framework.api.CuratorWatcher
| Modifier and Type | Method and Description |
|---|---|
void |
process(org.apache.zookeeper.WatchedEvent event)
Our event callback method.
|
void |
waitUntilDone(long timeout,
TimeUnit unit)
Waits until event fires or until the specified timeout.
|
public void process(org.apache.zookeeper.WatchedEvent event)
process in interface org.apache.curator.framework.api.CuratorWatcherevent - the watch event value provided by the callbackpublic void waitUntilDone(long timeout,
TimeUnit unit)
throws InterruptedException,
NodePoolException
timeout - the timeout valueunit - the unit of the timeout value, typically TimeUnit.SECONDSInterruptedException - if the current thread is interrupted while waitingNodePoolException - if the initial state check failsCopyright © 2016–2018. All rights reserved.