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

# keyPrefix

`open static fun keyPrefix(keyPrefix: String, vertx: Vertx): Watch<KeyValueList>`

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.

### Parameters

`keyPrefix` - the key

`vertx` - the `Vertx` instance

Return
the `Watch` instance

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

Creates `Watch` to monitoring a prefix of keys in the KV store. This maps to the /v1/kv/ API internally.

### Parameters

`keyPrefix` - the key

`vertx` - the `Vertx` instance

`options` - the options to create underlying Consul client

Return
the `Watch` instance