Class DropwizardVertxMetricsFactory
java.lang.Object
io.vertx.ext.dropwizard.DropwizardVertxMetricsFactory
- All Implemented Interfaces:
VertxMetricsFactory, VertxServiceProvider
- Author:
- Nick Scavelli
-
Constructor Summary
ConstructorsConstructorDescriptionDropwizardVertxMetricsFactory(com.codahale.metrics.MetricRegistry metricRegistry) Create a metrics factory passing a metric registry used instead of the Dropwizard shared registry. -
Method Summary
Modifier and TypeMethodDescriptionmetrics(VertxOptions options) Create a newVertxMetricsobject.Create an empty metrics options.newOptions(JsonObject jsonObject) Create metrics options from the providedjsonObject.newOptions(MetricsOptions options) Create metrics options from the providedoptions.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VertxMetricsFactory
init
-
Constructor Details
-
DropwizardVertxMetricsFactory
public DropwizardVertxMetricsFactory() -
DropwizardVertxMetricsFactory
public DropwizardVertxMetricsFactory(com.codahale.metrics.MetricRegistry metricRegistry) Create a metrics factory passing a metric registry used instead of the Dropwizard shared registry.- Parameters:
metricRegistry- the metricRegistry
-
-
Method Details
-
metrics
Description copied from interface:VertxMetricsFactoryCreate a newVertxMetricsobject. No specific thread and context can be expected when this method is called.- Specified by:
metricsin interfaceVertxMetricsFactory- Parameters:
options- the metrics configuration option- Returns:
- the metrics implementation
-
newOptions
Description copied from interface:VertxMetricsFactoryCreate metrics options from the providedoptions.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
MetricsOptionsinstance.- Specified by:
newOptionsin interfaceVertxMetricsFactory- Parameters:
options- new metrics options- Returns:
- new metrics options
-
newOptions
Description copied from interface:VertxMetricsFactoryCreate an empty metrics options. Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.- Specified by:
newOptionsin interfaceVertxMetricsFactory- Returns:
- new metrics options
-
newOptions
Description copied from interface:VertxMetricsFactoryCreate metrics options from the providedjsonObject.Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.
- Specified by:
newOptionsin interfaceVertxMetricsFactory- Parameters:
jsonObject- json provided by the user- Returns:
- new metrics options
-