Package io.etcd.jetcd
Interface Watch
- All Superinterfaces:
AutoCloseable,CloseableClient
Interface of the watch client.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface of Watcher.static interface -
Method Summary
Modifier and TypeMethodDescriptionstatic Watch.Listenerlistener(Consumer<WatchResponse> onNext) static Watch.Listenerlistener(Consumer<WatchResponse> onNext, Runnable onCompleted) static Watch.Listenerlistener(Consumer<WatchResponse> onNext, Consumer<Throwable> onError) static Watch.ListenervoidRequests the latest revision processed for all watcher instanceswatch(ByteSequence key, WatchOption option, Watch.Listener listener) watch on a key with option.default Watch.Watcherwatch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext) Watch key with option.default Watch.Watcherwatch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Runnable onCompleted) Watch key with option.default Watch.Watcherwatch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Consumer<Throwable> onError) Watch key with option.default Watch.Watcherwatch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Consumer<Throwable> onError, Runnable onCompleted) Watch key with option.default Watch.Watcherwatch(ByteSequence key, Watch.Listener listener) watch on a key.default Watch.Watcherwatch(ByteSequence key, Consumer<WatchResponse> onNext) Watch key.default Watch.Watcherwatch(ByteSequence key, Consumer<WatchResponse> onNext, Runnable onCompleted) Watch key.default Watch.Watcherwatch(ByteSequence key, Consumer<WatchResponse> onNext, Consumer<Throwable> onError) Watch key.default Watch.Watcherwatch(ByteSequence key, Consumer<WatchResponse> onNext, Consumer<Throwable> onError, Runnable onCompleted) Watch key.Methods inherited from interface io.etcd.jetcd.support.CloseableClient
close
-
Method Details
-
watch
watch on a key with option.- Parameters:
key- key to be watched on.option- seeWatchOption.listener- the event consumer- Returns:
- this watcher
- Throws:
io.etcd.jetcd.common.exception.ClosedClientException- if watch client has been closed.
-
watch
watch on a key.- Parameters:
key- key to be watched on.listener- the event consumer- Returns:
- this watcher
- Throws:
io.etcd.jetcd.common.exception.ClosedClientException- if watch client has been closed.
-
watch
Watch key.- Parameters:
key- key to be watched on.onNext- the on next consumer- Returns:
- this watcher
-
watch
default Watch.Watcher watch(ByteSequence key, Consumer<WatchResponse> onNext, Consumer<Throwable> onError) Watch key.- Parameters:
key- key to be watched on.onNext- the on next consumeronError- the on error consumer- Returns:
- this watcher
-
watch
default Watch.Watcher watch(ByteSequence key, Consumer<WatchResponse> onNext, Consumer<Throwable> onError, Runnable onCompleted) Watch key.- Parameters:
key- key to be watched on.onNext- the on next consumeronError- the on error consumeronCompleted- the on completion consumer- Returns:
- this watcher
-
watch
Watch key.- Parameters:
key- key to be watched on.onNext- the on next consumeronCompleted- the on completion consumer- Returns:
- this watcher
-
watch
Watch key with option.- Parameters:
key- key to be watched on.option- the optionsonNext- the on next consumer- Returns:
- this watcher
-
watch
default Watch.Watcher watch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Consumer<Throwable> onError) Watch key with option.- Parameters:
key- key to be watched on.option- the optionsonNext- the on next consumeronError- the on error consumer- Returns:
- this watcher
-
watch
default Watch.Watcher watch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Runnable onCompleted) Watch key with option.- Parameters:
key- key to be watched on.option- the optionsonNext- the on next consumeronCompleted- the on completion consumer- Returns:
- this watcher
-
watch
default Watch.Watcher watch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Consumer<Throwable> onError, Runnable onCompleted) Watch key with option.- Parameters:
key- key to be watched on.option- the optionsonNext- the on next consumeronError- the on error consumeronCompleted- the on completion consumer- Returns:
- this watcher
-
requestProgress
void requestProgress()Requests the latest revision processed for all watcher instances -
listener
-
listener
-
listener
-
listener
static Watch.Listener listener(Consumer<WatchResponse> onNext, Consumer<Throwable> onError, Runnable onCompleted)
-