Class: Watch

vertx-consul-js/watch~ Watch

new Watch()

Watches are a way of specifying a view of data (e.g. list of nodes, KV pairs, health checks)
Source:

Methods

setHandler(handler) → {Watch}

Set the result handler. As data is changed, the handler will be called with the result.
Parameters:
Name Type Description
handler function the result handler
Source:
Returns:
reference to this, for fluency
Type
Watch

start() → {Watch}

Start this Watch
Source:
Returns:
reference to this, for fluency
Type
Watch

stop()

Stop the watch and release its resources
Source: