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.listener - the event consumerClosedClientException - if watch client has been closed.default Watch.Watcher watch(ByteSequence key, Watch.Listener listener)
key - key to be watched on.listener - the event consumerClosedClientException - if watch client has been closed.default Watch.Watcher watch(ByteSequence key, Consumer<WatchResponse> onNext)
key - key to be watched on.onNext - the on next consumerdefault Watch.Watcher watch(ByteSequence key, Consumer<WatchResponse> onNext, Consumer<Throwable> onError)
key - key to be watched on.onNext - the on next consumeronError - the on error consumerdefault Watch.Watcher watch(ByteSequence key, Consumer<WatchResponse> onNext, Consumer<Throwable> onError, Runnable onCompleted)
key - key to be watched on.onNext - the on next consumeronError - the on error consumeronCompleted - the on completion consumerdefault Watch.Watcher watch(ByteSequence key, Consumer<WatchResponse> onNext, Runnable onCompleted)
key - key to be watched on.onNext - the on next consumeronCompleted - the on completion consumerdefault Watch.Watcher watch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext)
key - key to be watched on.option - the optionsonNext - the on next consumerdefault Watch.Watcher watch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Consumer<Throwable> onError)
key - key to be watched on.option - the optionsonNext - the on next consumeronError - the on error consumerdefault Watch.Watcher watch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Runnable onCompleted)
key - key to be watched on.option - the optionsonNext - the on next consumeronCompleted - the on completion consumerdefault Watch.Watcher watch(ByteSequence key, WatchOption option, Consumer<WatchResponse> onNext, Consumer<Throwable> onError, Runnable onCompleted)
key - key to be watched on.option - the optionsonNext - the on next consumeronError - the on error consumeronCompleted - the on completion consumerstatic 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 © 2021. All rights reserved.