interface ConfigRetriever
Defines a configuration retriever that read configuration from ConfigStore and tracks changes periodically.
Author
Clement Escoffier
abstract fun close(): Unit
Closes the retriever. |
|
abstract fun configStream(): ReadStream<JsonObject> |
|
open static fun create(vertx: Vertx, options: ConfigRetrieverOptions): ConfigRetriever
Creates an instance of the default implementation of the ConfigRetriever. open static fun create(vertx: Vertx): ConfigRetriever
Creates an instance of the default implementation of the ConfigRetriever, using the default settings (json file, system properties and environment variables). |
|
abstract fun getCachedConfig(): JsonObject
Gets the last computed configuration. |
|
abstract fun getConfig(completionHandler: Handler<AsyncResult<JsonObject>>): Unit
Reads the configuration from the different ConfigStore and computes the final configuration. |
|
open static fun getConfigAsFuture(retriever: ConfigRetriever): Future<JsonObject>
Same as |
|
abstract fun listen(listener: Handler<ConfigChange>): Unit
Registers a listener receiving configuration changes. This method cannot only be called if the configuration is broadcasted. |