Package io.deephaven.kv
Interface WatchClient
- All Known Implementing Classes:
WatchClientEtcd
public interface WatchClient
A watch client allows the creation and management of watch-based requests against a KV store.
A
watch is against a specific key, or a specific key prefix, where the server will
send asynchronous push notification whenever the relevant key(s) change (in response to
puts or delete key or delete keys).-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface for receivingWatchResponses.static interfaceA simplified interface simplifyingWatchClient.Listenerfor single key path watches.static interfaceAwatch listenerstyle interface for a stateful typeT.static interfaceA simplified "deltas" interface forWatchClient.Listener.static interfaceRepresents the watch.static enumThe states of aWatchClient.Watch. -
Method Summary
Modifier and TypeMethodDescriptionwatch(WatchKeyPrefix request, WatchClient.Listener listener) Creates a watch against a specific key prefix.default WatchClient.Watchwatch(WatchKeyPrefix request, WatchClient.UnitListener listener) Creates a watch against a specific key prefix.watch(WatchKey request, WatchClient.Listener listener) Creates a watch against a specific key.default WatchClient.Watchwatch(WatchKey request, WatchClient.SingleKeyPathListener listener) Creates a watch against a specific key.default WatchClient.Watchwatch(WatchKey request, WatchClient.UnitListener listener) Creates a watch against a specific key.
-
Method Details
-
watch
Creates a watch against a specific key.- Parameters:
request- the watch key requestlistener- the listener- Returns:
- the watch
-
watch
Creates a watch against a specific key prefix.- Parameters:
request- the watch key prefix requestlistener- the listener- Returns:
- the watch
-
watch
Creates a watch against a specific key.- Parameters:
request- the watch key requestlistener- the listener- Returns:
- the watch
-
watch
Creates a watch against a specific key prefix.- Parameters:
request- the watch key prefix requestlistener- the listener- Returns:
- the watch
-
watch
Creates a watch against a specific key.- Parameters:
request- the watch key requestlistener- the listener- Returns:
- the watch
-