public static interface Watch.Watcher
| 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()
WatchResponse listen() throws InterruptedException
ClosedWatcherException - if watcher has been closed.ClosedClientException - if watch client has been closed.CompactedException - when watch a key at a revision that has
been compacted.EtcdException - when listen encounters connection error,
etcd server error, or any internal client error.InterruptedException - when listen thread is interrupted.Copyright © 2017. All rights reserved.