Defines a configuration retriever that read configuration from
and tracks changes periodically.
package |
Default |
---|
__construct()
close() : void
configStream() : \io\vertx\jphp\config\ReadStream<JsonObject>
\io\vertx\jphp\config\ReadStream
the stream of configurations. It's single stream (unicast) and that delivers the last known config and the successors periodically.
create( $arg0, $arg1 = null) : \io\vertx\jphp\config\ConfigRetriever
param $vertx [Vertx] the vert.x instance create($vertx)
Creates an instance of the default implementation of the @see \io\vertx\jphp\config\ConfigRetriever.
param $vertx [Vertx] the vert.x instance param $options [ConfigRetrieverOptions | array] the options, must not be {@code null}, must contain the list of configured store. create($vertx, $options)
Vertx
array | ConfigRetrieverOptions
\io\vertx\jphp\config\ConfigRetriever
the created instance.
getCachedConfig() : array
array
the last configuration
getConfig( $arg0) : void
callable
getConfigAsFuture( $arg0) : \io\vertx\jphp\config\Future<JsonObject>
.
ConfigRetriever
\io\vertx\jphp\config\Future
the future completed when the configuration is retrieved
listen( $arg0) : void
callable
setBeforeScanHandler( $arg0) : $this
callable
$this
the current config retriever
setConfigurationProcessor( $arg0) : $this
callable
$this
the current config retriever