open class Watch<T : Any>
Watches are a way of specifying a view of data (e.g. list of nodes, KV pairs, health checks) which is monitored for updates. When an update is detected, an Handler with AsyncResult is invoked. As an example, you could watch the status of health checks and notify when a check is critical. NOTE: This class has been automatically generated from the io.vertx.ext.consul.Watch non RX-ified interface using Vert.x codegen.
Watch(delegate: Watch<Any>)Watch(delegate: Watch<Any>, typeArg_0: TypeArg<T>) |
static val __TYPE_ARG: TypeArg<Watch<Any>> |
|
val __typeArg_0: TypeArg<T> |
open fun equals(other: Any?): Boolean |
|
open static fun events(event: String, vertx: Vertx): Watch<EventList>
Creates open static fun events(event: String, vertx: Vertx, options: ConsulClientOptions): Watch<EventList>
Creates |
|
open fun getDelegate(): Watch<Any> |
|
open fun hashCode(): Int |
|
open static fun key(key: String, vertx: Vertx): Watch<KeyValue>
Creates open static fun key(key: String, vertx: Vertx, options: ConsulClientOptions): Watch<KeyValue>
Creates |
|
open static fun keyPrefix(keyPrefix: String, vertx: Vertx): Watch<KeyValueList>
Creates open static fun keyPrefix(keyPrefix: String, vertx: Vertx, options: ConsulClientOptions): Watch<KeyValueList>
Creates |
|
open static fun <T : Any> newInstance(arg: Watch<Any>): Watch<T>open static fun <T : Any> newInstance(arg: Watch<Any>, __typeArg_T: TypeArg<T>): Watch<T> |
|
open static fun nodes(vertx: Vertx): Watch<NodeList>
Creates open static fun nodes(vertx: Vertx, options: ConsulClientOptions): Watch<NodeList>
Creates |
|
open static fun service(service: String, vertx: Vertx): Watch<ServiceEntryList>
Creates open static fun service(service: String, vertx: Vertx, options: ConsulClientOptions): Watch<ServiceEntryList>
Creates |
|
open static fun services(vertx: Vertx): Watch<ServiceList>
Creates open static fun services(vertx: Vertx, options: ConsulClientOptions): Watch<ServiceList>
Creates |
|
open fun setHandler(handler: Handler<WatchResult<T>>): Watch<T>
Set the result handler. As data is changed, the handler will be called with the result. |
|
open fun start(): Watch<T>
Start this |
|
open fun stop(): Unit
Stop the watch and release its resources |
|
open fun toString(): String |