Enum Class DevNullMetricsListener

java.lang.Object
java.lang.Enum<DevNullMetricsListener>
org.neo4j.driver.internal.metrics.DevNullMetricsListener
All Implemented Interfaces:
Serializable, Comparable<DevNullMetricsListener>, Constable, org.neo4j.bolt.connection.MetricsListener

public enum DevNullMetricsListener extends Enum<DevNullMetricsListener> implements org.neo4j.bolt.connection.MetricsListener
  • Enum Constant Details

  • Method Details

    • values

      public static DevNullMetricsListener[] 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 DevNullMetricsListener 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
    • beforeCreating

      public void beforeCreating(String poolId, org.neo4j.bolt.connection.ListenerEvent<?> creatingEvent)
      Specified by:
      beforeCreating in interface org.neo4j.bolt.connection.MetricsListener
    • afterCreated

      public void afterCreated(String poolId, org.neo4j.bolt.connection.ListenerEvent<?> creatingEvent)
      Specified by:
      afterCreated in interface org.neo4j.bolt.connection.MetricsListener
    • afterFailedToCreate

      public void afterFailedToCreate(String poolId)
      Specified by:
      afterFailedToCreate in interface org.neo4j.bolt.connection.MetricsListener
    • afterClosed

      public void afterClosed(String poolId)
      Specified by:
      afterClosed in interface org.neo4j.bolt.connection.MetricsListener
    • beforeAcquiringOrCreating

      public void beforeAcquiringOrCreating(String poolId, org.neo4j.bolt.connection.ListenerEvent<?> acquireEvent)
      Specified by:
      beforeAcquiringOrCreating in interface org.neo4j.bolt.connection.MetricsListener
    • afterAcquiringOrCreating

      public void afterAcquiringOrCreating(String poolId)
      Specified by:
      afterAcquiringOrCreating in interface org.neo4j.bolt.connection.MetricsListener
    • afterAcquiredOrCreated

      public void afterAcquiredOrCreated(String poolId, org.neo4j.bolt.connection.ListenerEvent<?> acquireEvent)
      Specified by:
      afterAcquiredOrCreated in interface org.neo4j.bolt.connection.MetricsListener
    • afterTimedOutToAcquireOrCreate

      public void afterTimedOutToAcquireOrCreate(String poolId)
      Specified by:
      afterTimedOutToAcquireOrCreate in interface org.neo4j.bolt.connection.MetricsListener
    • afterConnectionCreated

      public void afterConnectionCreated(String poolId, org.neo4j.bolt.connection.ListenerEvent<?> inUseEvent)
      Specified by:
      afterConnectionCreated in interface org.neo4j.bolt.connection.MetricsListener
    • afterConnectionReleased

      public void afterConnectionReleased(String poolId, org.neo4j.bolt.connection.ListenerEvent<?> inUseEvent)
      Specified by:
      afterConnectionReleased in interface org.neo4j.bolt.connection.MetricsListener
    • createListenerEvent

      public org.neo4j.bolt.connection.ListenerEvent<?> createListenerEvent()
      Specified by:
      createListenerEvent in interface org.neo4j.bolt.connection.MetricsListener
    • registerPoolMetrics

      public void registerPoolMetrics(String poolId, org.neo4j.bolt.connection.BoltServerAddress serverAddress, IntSupplier inUseSupplier, IntSupplier idleSupplier)
      Specified by:
      registerPoolMetrics in interface org.neo4j.bolt.connection.MetricsListener
    • removePoolMetrics

      public void removePoolMetrics(String poolId)
      Specified by:
      removePoolMetrics in interface org.neo4j.bolt.connection.MetricsListener
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DevNullMetricsListener>