Class DropwizardVertxMetricsFactory

    • Constructor Detail

      • 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 Detail

      • newOptions

        public MetricsOptions newOptions​(MetricsOptions options)
        Description copied from interface: VertxMetricsFactory
        Create metrics options from the provided 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.

        Specified by:
        newOptions in interface VertxMetricsFactory
        Parameters:
        options - new metrics options
        Returns:
        new metrics options
      • newOptions

        public MetricsOptions newOptions()
        Description copied from interface: VertxMetricsFactory
        Create an empty metrics options. Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.
        Specified by:
        newOptions in interface VertxMetricsFactory
        Returns:
        new metrics options
      • newOptions

        public MetricsOptions newOptions​(JsonObject jsonObject)
        Description copied from interface: VertxMetricsFactory
        Create metrics options from the provided jsonObject.

        Providers can override this method to provide a custom metrics options subclass that exposes custom configuration.

        Specified by:
        newOptions in interface VertxMetricsFactory
        Parameters:
        jsonObject - json provided by the user
        Returns:
        new metrics options