public interface VertxMetricsFactory extends VertxServiceProvider
Modifier and Type | Method and Description |
---|---|
default void |
init(io.vertx.core.impl.VertxBuilder builder)
Let the provider initialize the Vert.x builder.
|
VertxMetrics |
metrics(VertxOptions options)
Create a new
VertxMetrics object.
No specific thread and context can be expected when this method is called. |
default MetricsOptions |
newOptions()
Create an empty metrics options.
|
default MetricsOptions |
newOptions(JsonObject jsonObject)
Create metrics options from the provided
jsonObject . |
default MetricsOptions |
newOptions(MetricsOptions options)
Create metrics options from the provided
options . |
default void init(io.vertx.core.impl.VertxBuilder builder)
VertxServiceProvider
init
in interface VertxServiceProvider
builder
- the builderVertxMetrics metrics(VertxOptions options)
VertxMetrics
object.
No specific thread and context can be expected when this method is called.options
- the metrics configuration optiondefault MetricsOptions newOptions()
Launcher
class when creating new options when building a CLI Vert.x.default MetricsOptions newOptions(MetricsOptions options)
options
.
Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.
It is used when a Vert.x instance is created with a MetricsOptions
instance.
options
- new metrics optionsdefault MetricsOptions newOptions(JsonObject jsonObject)
jsonObject
.
Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.
It is used by the Launcher
class when creating new options when building a CLI Vert.x.
jsonObject
- json provided by the userCopyright © 2024 Eclipse. All rights reserved.