public static interface KvClient.WatchIterator extends Closeable, Iterator<WatchUpdate>
close() at any time to cancel the watch. Failure of the watch will
result in Iterator.next() throwing the corresponding exception after first
returning any pending updates. If the watch completes normally then either
Iterator.hasNext() will return false, or Iterator.next() will return a special
WatchUpdate with no events and a null response header.
Note that like Iterators in general, this is not threadsafe.
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
forEachRemaining, hasNext, next, removevoid close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2023. All rights reserved.