Class MetricsOptions

    • Field Detail

      • DEFAULT_METRICS_ENABLED

        public static final boolean DEFAULT_METRICS_ENABLED
        The default value of metrics enabled false
        See Also:
        Constant Field Values
    • Constructor Detail

      • MetricsOptions

        public MetricsOptions()
        Default constructor
      • MetricsOptions

        public MetricsOptions​(MetricsOptions other)
        Copy constructor
        Parameters:
        other - The other MetricsOptions to copy when creating this
      • MetricsOptions

        public MetricsOptions​(JsonObject json)
        Create an instance from a JsonObject
        Parameters:
        json - the JsonObject to create it from
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Will metrics be enabled on the Vert.x instance?
        Returns:
        true if enabled, false if not.
      • setEnabled

        public MetricsOptions setEnabled​(boolean enable)
        Set whether metrics will be enabled on the Vert.x instance.
        Parameters:
        enable - true if metrics enabled, or false if not.
        Returns:
        a reference to this, so the API can be used fluently