public static interface Watch.Watcher extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes this watcher and all its resources.
|
WatchResponse |
listen()
Retrieves next watch key, waiting if there are none.
|
void close()
close in interface AutoCloseableWatchResponse listen() throws InterruptedException
com.coreos.jetcd.common.exception.ClosedWatcherException - if watcher has been closed.com.coreos.jetcd.common.exception.ClosedClientException - if watch client has been closed.com.coreos.jetcd.common.exception.CompactedException - when watch a key at a revision that has
been compacted.com.coreos.jetcd.common.exception.EtcdException - when listen encounters connection error,
etcd server error, or any internal client error.InterruptedException - when listen thread is interrupted.Copyright © 2018. All rights reserved.