public interface Watch extends CloseableClient
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Watch.Listener
Interface of Watcher.
|
static interface |
Watch.Watcher |
closeWatch.Watcher watch(ByteSequence key, WatchOption option, Watch.Listener listener)
key - key to be watched on.option - see WatchOption.io.etcd.jetcd.common.exception.ClosedClientException - if watch client has been closed.default Watch.Watcher watch(ByteSequence key, Watch.Listener listener)
key - key to be watched on.io.etcd.jetcd.common.exception.ClosedClientException - if watch client has been closed.default Watch.Watcher watch(ByteSequence key, Consumer<WatchResponse> onNext)
default Watch.Watcher watch(ByteSequence key, Consumer<WatchResponse> onNext, Consumer<Throwable> onError)
default Watch.Watcher watch(ByteSequence key, Consumer<WatchResponse> onNext, Consumer<Throwable> onError, Runnable onCompleted)
default Watch.Watcher watch(ByteSequence key, Consumer<WatchResponse> onNext, Runnable onCompleted)
default Watch.Watcher watch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext)
default Watch.Watcher watch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Consumer<Throwable> onError)
default Watch.Watcher watch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Runnable onCompleted)
default Watch.Watcher watch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Consumer<Throwable> onError, Runnable onCompleted)
static Watch.Listener listener(Consumer<WatchResponse> onNext)
static Watch.Listener listener(Consumer<WatchResponse> onNext, Consumer<Throwable> onError)
static Watch.Listener listener(Consumer<WatchResponse> onNext, Runnable onCompleted)
static Watch.Listener listener(Consumer<WatchResponse> onNext, Consumer<Throwable> onError, Runnable onCompleted)
Copyright © 2019. All rights reserved.