Set the result handler. As data is changed, the handler will be called with the result.
Start this Watch
Stop the watch and release its resources
Creates Watch
to monitoring the custom user events.
The underlying Consul client will be created with default options.
This maps to the /v1/event/list API internally.
Creates Watch
to monitoring the custom user events.
This maps to the /v1/event/list API internally.
Creates Watch
to monitoring a specific key in the KV store.
The underlying Consul client will be created with default options.
This maps to the /v1/kv/ API internally.
Creates Watch
to monitoring a specific key in the KV store.
This maps to the /v1/kv/ API internally.
Creates Watch
to monitoring a prefix of keys in the KV store.
The underlying Consul client will be created with default options.
This maps to the /v1/kv/ API internally.
Creates Watch
to monitoring a prefix of keys in the KV store.
This maps to the /v1/kv/ API internally.
Creates Watch
to monitoring the list of available nodes.
The underlying Consul client will be created with default options.
This maps to the /v1/catalog/nodes API internally.
Creates Watch
to monitoring the list of available nodes.
This maps to the /v1/catalog/nodes API internally.
Creates Watch
to monitoring the nodes providing the service.
Nodes will be sorted by distance from the consul agent.
The underlying Consul client will be created with default options.
This maps to the /v1/health/service/<service> API internally.
Creates Watch
to monitoring the nodes providing the service.
Nodes will be sorted by distance from the consul agent.
This maps to the /v1/health/service/<service> API internally.
Creates Watch
to monitoring the list of available services.
The underlying Consul client will be created with default options.
This maps to the /v1/catalog/services API internally.
Creates Watch
to monitoring the list of available services.
This maps to the /v1/catalog/services API internally.
Generated using TypeDoc
Watches are a way of specifying a view of data (e.g. list of nodes, KV pairs, health checks) which is monitored for updates. When an update is detected, an
Handler
withWatchResult
is invoked. All errors, exceptjava.util.concurrent.TimeoutException
, will be handled, with resubscribing with a progressive delay. All timeout errors will be ignored, with resubscribing without any delay. As an example, you could watch the status of health checks and notify when a check is critical.