vertx / io.vertx.rxjava.config / ConfigRetriever

ConfigRetriever

open class ConfigRetriever

Defines a configuration retriever that read configuration from and tracks changes periodically. NOTE: This class has been automatically generated from the io.vertx.config.ConfigRetriever non RX-ified interface using Vert.x codegen.

Constructors

<init>

ConfigRetriever(delegate: ConfigRetriever)

Properties

__TYPE_ARG

static val __TYPE_ARG: TypeArg<ConfigRetriever>

Functions

close

open fun close(): Unit

Closes the retriever.

configStream

open fun configStream(): ReadStream<JsonObject>

create

open static fun create(vertx: Vertx, options: ConfigRetrieverOptions): ConfigRetriever

Creates an instance of the default implementation of the io.vertx.rxjava.config.ConfigRetriever.

open static fun create(vertx: Vertx): ConfigRetriever

Creates an instance of the default implementation of the io.vertx.rxjava.config.ConfigRetriever, using the default settings (json file, system properties and environment variables).

equals

open fun equals(other: Any?): Boolean

getCachedConfig

open fun getCachedConfig(): JsonObject

Gets the last computed configuration.

getConfig

open fun getConfig(completionHandler: Handler<AsyncResult<JsonObject>>): Unit

Reads the configuration from the different and computes the final configuration.

getConfigAsFuture

open static fun getConfigAsFuture(retriever: ConfigRetriever): Future<JsonObject>

Same as io.vertx.rxjava.config.ConfigRetriever#getConfig, but returning a object. The result is a .

getDelegate

open fun getDelegate(): ConfigRetriever

hashCode

open fun hashCode(): Int

listen

open fun listen(listener: Handler<ConfigChange>): Unit

Registers a listener receiving configuration changes. This method cannot only be called if the configuration is broadcasted.

newInstance

open static fun newInstance(arg: ConfigRetriever): ConfigRetriever

rxGetConfig

open fun rxGetConfig(): Single<JsonObject>

Reads the configuration from the different and computes the final configuration.

toString

open fun toString(): String