b2e07b3207
a28b6ec81d
@ -65,6 +65,11 @@ public interface HikariPoolMXBean
*/
int getThreadsAwaitingConnection();
/**
* Returns whether the pool is currently suspended.
boolean isSuspended();
* Evict currently idle connections from the pool, and mark active (in-use) connections for eviction when they are
* returned to the pool.
@ -371,6 +371,13 @@ public final class HikariPool extends PoolBase implements HikariPoolMXBean, IBag
return connectionBag.getWaitingThreadCount();
}
/** {@inheritDoc} */
@Override
public boolean isSuspended()
{
return poolState == POOL_SUSPENDED;
public void softEvictConnections()