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 TypeMethodDescriptionReturns the average amount of time a connection has been used when reserved.getID()
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.inUse()
Returns whether the connection is currently in use.Returns whether the connection is dynamic.
-
Method Details
-
getID
-
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
-