vertx / io.vertx.kotlin.ext.consul / io.vertx.ext.consul.ConsulClient / getValuesWithOptionsAwait

getValuesWithOptionsAwait

suspend fun ConsulClient.getValuesWithOptionsAwait(keyPrefix: String, options: BlockingQueryOptions): KeyValueList

Returns the list of key/value pairs that corresponding to the specified key prefix. An empty io.vertx.ext.consul.KeyValueList object will be returned if no such key prefix is found. This is blocking query unlike io.vertx.ext.consul.ConsulClient

Parameters

keyPrefix - the prefix

options - the blocking options

resultHandler - will be provided with list of key/value pairs

Returnreference
to this, for fluency *