Enum Class MetricsAdapter

java.lang.Object
java.lang.Enum<MetricsAdapter>
org.neo4j.driver.MetricsAdapter
All Implemented Interfaces:
Serializable, Comparable<MetricsAdapter>, Constable

public enum MetricsAdapter extends Enum<MetricsAdapter>
Defines which metrics consumer to use: Should metrics be consumed and exposed via driver's default consumer or provided with one of the external facades.
  • Enum Constant Details

    • DEV_NULL

      public static final MetricsAdapter DEV_NULL
      Disables metrics.
    • DEFAULT

      public static final MetricsAdapter DEFAULT
      Consumes and publishes metrics via the driver itself.
    • MICROMETER

      public static final MetricsAdapter MICROMETER
      Consumes and publishes metrics via Micrometer. Ensure that Micrometer is on classpath when using this option.
  • Method Details

    • values

      public static MetricsAdapter[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MetricsAdapter valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null