# 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:
  - vertx-consul-js/watch.js, line 33

### 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:
  - vertx-consul-js/watch.js, line 46

##### Returns:

reference to this, for fluency

Type
  Watch

#### start() → {Watch}

Start this `Watch`

Source:
  - vertx-consul-js/watch.js, line 67

##### Returns:

reference to this, for fluency

Type
  Watch

#### stop()

Stop the watch and release its resources

Source:
  - vertx-consul-js/watch.js, line 81