Interface ConnectionMBean

All Known Implementing Classes:
ConnectionMBeanImpl

public interface ConnectionMBean
A JMX bean interface for JDBC connection information.
Since:
10.2
Version:
10.2
Author:
Luke
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the average amount of time a connection has been used when reserved.
    Returns the connection ID.
    Returns the time this connection was last reserved.
    Returns the total amount of time this connection has been reserved.
    Returns the number of times this connection has been reserved.
    Returns whether the connection is currently in use.
    Returns whether the connection is dynamic.
  • Method Details

    • getID

      Integer getID()
      Returns the connection ID.
      Returns:
      the ID
    • isDynamic

      Boolean isDynamic()
      Returns whether the connection is dynamic.
      Returns:
      TRUE if dynamic, otherwise FALSE
    • inUse

      Boolean inUse()
      Returns whether the connection is currently in use.
      Returns:
      TRUE if in use, otherwise FALSE
    • getUseCount

      Long getUseCount()
      Returns the number of times this connection has been reserved.
      Returns:
      the number of reservations
    • getTotalUse

      Long getTotalUse()
      Returns the total amount of time this connection has been reserved.
      Returns:
      the total time in milliseconds
    • getAverageUse

      Integer getAverageUse()
      Returns the average amount of time a connection has been used when reserved.
      Returns:
      the average reservation time in milliseconds, or zero if never reserved
    • getLastUse

      Instant getLastUse()
      Returns the time this connection was last reserved.
      Returns:
      the last reservation date/time