public static class ConnectionPoolMetrics.DelegatingConnectionPoolMetrics extends Object implements ConnectionPoolMetrics
ConnectionPoolMetrics.DelegatingConnectionPoolMetrics
Constructor and Description |
---|
DelegatingConnectionPoolMetrics(reactor.pool.InstrumentedPool.PoolMetrics delegate) |
Modifier and Type | Method and Description |
---|---|
int |
acquiredSize()
Measure the current number of resources that have been successfully
acquired and are in active use.
|
int |
allocatedSize()
Measure the current number of allocated resources in the pool, acquired
or idle.
|
int |
idleSize()
Measure the current number of idle resources in the pool.
|
int |
pendingAcquireSize()
Measure the current number of "pending" acquire Monos in the Pool.
|
public DelegatingConnectionPoolMetrics(reactor.pool.InstrumentedPool.PoolMetrics delegate)
public int acquiredSize()
ConnectionPoolMetrics
acquiredSize
in interface ConnectionPoolMetrics
public int allocatedSize()
ConnectionPoolMetrics
allocatedSize
in interface ConnectionPoolMetrics
public int idleSize()
ConnectionPoolMetrics
Note that some resources might be lazily evicted when they're next considered for an incoming acquire call. Such resources would still count towards this method.
idleSize
in interface ConnectionPoolMetrics
public int pendingAcquireSize()
ConnectionPoolMetrics
An acquire is in the pending state when it is attempted at a point when no idle resource is available in the pool, and no new resource can be created.
pendingAcquireSize
in interface ConnectionPoolMetrics