vertx / io.vertx.rxjava.ext.consul / Watch / service

# service

`open static fun service(service: String, vertx: Vertx): Watch<ServiceEntryList>`

Creates `Watch` to monitoring the nodes providing the service. The underlying Consul client will be created with default options. This maps to the /v1/health/service/<service> API internally.

### Parameters

`service` - the service name

`vertx` - the `Vertx` instance

Return
the `Watch` instance

`open static fun service(service: String, vertx: Vertx, options: ConsulClientOptions): Watch<ServiceEntryList>`

Creates `Watch` to monitoring the nodes providing the service. This maps to the /v1/health/service/<service> API internally.

### Parameters

`service` - the service name

`vertx` - the `Vertx` instance

`options` - the options to create underlying Consul client

Return
the `Watch` instance