Package com.zaxxer.hikari
Interface HikariPoolMXBean
- 
 public interface HikariPoolMXBeanThe javax.management MBean for a Hikari pool instance.- Author:
- Brett Wooldridge
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetActiveConnections()Get the number of currently active connections in the pool.intgetIdleConnections()Get the number of currently idle connections in the pool.intgetThreadsAwaitingConnection()Get the number of threads awaiting connections from the pool.intgetTotalConnections()Get the total number of connections currently in the pool.voidresumePool()Resume the pool.voidsoftEvictConnections()Evict currently idle connections from the pool, and mark active (in-use) connections for eviction when they are returned to the pool.voidsuspendPool()Suspend the pool.
 
- 
- 
- 
Method Detail- 
getIdleConnectionsint getIdleConnections() Get the number of currently idle connections in the pool.The return value is extremely transient and is a point-in-time measurement. Therefore, due to a time difference between invoking this method and getActiveConnections(), it is possible for the sum of idle plus active connections to be either less than or greater than the value returned bygetTotalConnections().- Returns:
- the current number of idle connections in the pool
 
 - 
getActiveConnectionsint getActiveConnections() Get the number of currently active connections in the pool.The return value is extremely transient and is a point-in-time measurement. Therefore, due to a time difference between invoking this method and getIdleConnections(), it is possible for the sum of idle plus active connections to be either less than or greater than the value returned bygetTotalConnections().- Returns:
- the current number of active (in-use) connections in the pool
 
 - 
getTotalConnectionsint getTotalConnections() Get the total number of connections currently in the pool. The return value is transient and is a point-in-time measurement.- Returns:
- the total number of connections in the pool
 
 - 
getThreadsAwaitingConnectionint getThreadsAwaitingConnection() Get the number of threads awaiting connections from the pool. The return value is extremely transient and is a point-in-time measurement.- Returns:
- the number of threads awaiting a connection from the pool
 
 - 
softEvictConnectionsvoid softEvictConnections() Evict currently idle connections from the pool, and mark active (in-use) connections for eviction when they are returned to the pool.
 - 
suspendPoolvoid suspendPool() Suspend the pool. When the pool is suspended, threads callingDataSource.getConnection()will be blocked with no timeout until the pool is resumed via theresumePool()method.
 This method has no effect unless theHikariConfig.setAllowPoolSuspension(boolean)method or equivalent property has been set totrue.
 - 
resumePoolvoid resumePool() Resume the pool. Enables connection borrowing to resume on a pool that has been suspended via thesuspendPool()method.
 This method has no effect unless theHikariConfig.setAllowPoolSuspension(boolean)method or equivalent property has been set totrue.
 
- 
 
-