public interface PoolMetrics
ConnectionPool, suitable
for gauge metrics.
getXxx methods are configuration accessors, their values that won't change over time, whereas other methods can be used as gauges to introspect the current state of the pool.
| Modifier and Type | Method and Description |
|---|---|
int |
acquiredSize()
Measure the current number of connections that have been successfully
ConnectionPool.create() acquired} and are in active use. |
int |
allocatedSize()
Measure the current number of allocated connections in the
ConnectionPool, acquired
or idle. |
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 |
idleSize()
Measure the current number of idle connections in the
ConnectionPool. |
int |
pendingAcquireSize()
Measure the current number of "pending"
ConnectionPool.create() acquire Monos in
the ConnectionPool. |
int acquiredSize()
ConnectionPool.create() acquired} and are in active use.int allocatedSize()
ConnectionPool, acquired
or idle.Poolint idleSize()
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.
int pendingAcquireSize()
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.
int getMaxAllocatedSize()
ConnectionPool will allow.
A ConnectionPool might be unbounded, in which case this method returns Integer.MAX_VALUE.
ConnectionPool.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.Copyright © 2023. All rights reserved.