Interface ConnectionProvider.ConnectionMetadata

Enclosing interface:
ConnectionProvider

public static interface ConnectionProvider.ConnectionMetadata
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of times the connection has been acquired from the pool.
    long
    Returns a timestamp that denotes the order in which the connection was created/allocated, to millisecond precision.
    long
    Returns the time in ms that the connection has been idle.
    long
    Returns the age of the connection in ms.
    long
    Returns a timestamp that denotes the order in which the connection was last released, to millisecond precision.
  • Method Details

    • acquireCount

      int acquireCount()
      Returns the number of times the connection has been acquired from the pool. Returns 1 the first time the connection is allocated.
      Returns:
      the number of times the connection has been acquired
    • idleTime

      long idleTime()
      Returns the time in ms that the connection has been idle.
      Returns:
      connection idle time in ms
    • lifeTime

      long lifeTime()
      Returns the age of the connection in ms.
      Returns:
      connection age in ms
    • releaseTimestamp

      long releaseTimestamp()
      Returns a timestamp that denotes the order in which the connection was last released, to millisecond precision.
      Returns:
      the connection last release timestamp, or zero if currently acquired
    • allocationTimestamp

      long allocationTimestamp()
      Returns a timestamp that denotes the order in which the connection was created/allocated, to millisecond precision.
      Returns:
      the connection creation timestamp