public interface HikariPoolMXBean
Modifier and Type | Method and Description |
---|---|
int |
getActiveConnections()
Get the number of currently active connections in the pool.
|
int |
getIdleConnections()
Get the number of currently idle connections in the pool.
|
int |
getThreadsAwaitingConnection()
Get the number of threads awaiting connections from the pool.
|
int |
getTotalConnections()
Get the total number of connections currently in the pool.
|
void |
resumePool()
Resume the pool.
|
void |
softEvictConnections()
Evict currently idle connections from the pool, and mark active (in-use) connections for eviction when they are
returned to the pool.
|
void |
suspendPool()
Suspend the pool.
|
int getIdleConnections()
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 by
getTotalConnections()
.
int getActiveConnections()
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 by
getTotalConnections()
.
int getTotalConnections()
int getThreadsAwaitingConnection()
void softEvictConnections()
void suspendPool()
DataSource.getConnection()
will be
blocked with no timeout until the pool is resumed via the resumePool()
method.
HikariConfig.setAllowPoolSuspension(boolean)
method or equivalent
property has been set to true
.void resumePool()
suspendPool()
method.
HikariConfig.setAllowPoolSuspension(boolean)
method or equivalent
property has been set to true
.Copyright © 2020 Zaxxer.com. All Rights Reserved.