public interface ConnectionPoolMXBean
ConnectionPool.
Expose PoolMetrics values to JMX.
PoolMetrics| Modifier and Type | Method and Description |
|---|---|
int |
getAcquiredSize()
Measure the current number of connections that have been successfully
ConnectionPool.create() acquired and are in active use. |
int |
getAllocatedSize()
Measure the current number of allocated connections in the
ConnectionPool, acquired
or idle. |
int |
getIdleSize()
Measure the current number of idle connections in the
ConnectionPool. |
int |
getMaxAllocatedSize()
Get the maximum number of live connections this
ConnectionPool will allow. |
int |
getMaxPendingAcquireSize()
Get the maximum number of
ConnectionPool.create() this ConnectionPool can queue in
a pending state when no available connection is immediately handy (and the ConnectionPool
cannot allocate more connections). |
int |
getPendingAcquireSize()
Measure the current number of "pending"
ConnectionPool.create() acquire Monos in
the ConnectionPool. |
static final String DOMAIN
int getAcquiredSize()
ConnectionPool.create() acquired and are in active use.PoolMetrics.acquiredSize()int getAllocatedSize()
ConnectionPool, acquired
or idle.PoolPoolMetrics.allocatedSize()int getIdleSize()
ConnectionPool.
Note that some connections might be lazily evicted when they're next considered
for an incoming ConnectionPool.create() call. Such connections would still count
towards this method.
PoolMetrics.idleSize()int getPendingAcquireSize()
ConnectionPool.create() acquire Monos in
the ConnectionPool.
An acquire is in the pending state when it is attempted at a point when no idle connections is available in the pool, and no new connection can be created.
PoolMetrics.pendingAcquireSize()int getMaxAllocatedSize()
ConnectionPool will allow.
A ConnectionPool might be unbounded, in which case this method returns Integer.MAX_VALUE.
ConnectionPool.PoolMetrics.getMaxAllocatedSize()int getMaxPendingAcquireSize()
ConnectionPool.create() this ConnectionPool can queue in
a pending state when no available connection is immediately handy (and the ConnectionPool
cannot allocate more connections).
A ConnectionPool pending queue might be unbounded, in which case this method returns
Integer.MAX_VALUE.
ConnectionPool.PoolMetrics.getMaxPendingAcquireSize()Copyright © 2024. All rights reserved.