Interface ConnectionPoolMXBean
- All Known Implementing Classes:
JMXConnectionPool
An interface for JMX Beans that monitor a JDBC connection pool.
- Since:
- 10.2
- Version:
- 12.1
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()Returns the connection pool code.Returns the length of the maximum connection borrow time since the last refresh.Returns the length of the maximum connection wait time since the last refresh.Returns a collection of connection information.Returns the number of requests since the last update.getSize()Returns the current size of the connection pool.The last update time.
-
Method Details
-
getUpdateTime
-
getRequests
Long getRequests()Returns the number of requests since the last update.- Returns:
- the number of connection pool requests
-
getCode
-
getSize
Integer getSize()Returns the current size of the connection pool.- Returns:
- the number of connections
-
getMaxBorrowTime
Integer getMaxBorrowTime()Returns the length of the maximum connection borrow time since the last refresh.- Returns:
- the borrow time in milliseconds
-
getMaxWaitTime
Integer getMaxWaitTime()Returns the length of the maximum connection wait time since the last refresh.- Returns:
- the wait time in milliseconds
-
getPoolInfo
ConnectionMBean[] getPoolInfo()Returns a collection of connection information.- Returns:
- a Collection of ConnectionMBeans
-