pull/1940/merge
Ashok Gurumurthy 3 months ago committed by GitHub
commit 98ba78c55a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -65,6 +65,11 @@ public interface HikariPoolMXBean
*/ */
int getThreadsAwaitingConnection(); 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 * Evict currently idle connections from the pool, and mark active (in-use) connections for eviction when they are
* returned to the pool. * returned to the pool.

@ -371,6 +371,13 @@ public final class HikariPool extends PoolBase implements HikariPoolMXBean, IBag
return connectionBag.getWaitingThreadCount(); return connectionBag.getWaitingThreadCount();
} }
/** {@inheritDoc} */
@Override
public boolean isSuspended()
{
return poolState == POOL_SUSPENDED;
}
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
public void softEvictConnections() public void softEvictConnections()

Loading…
Cancel
Save