public interface ConnectionPoolMetrics
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 |
maxAllocatedSize()
Get the maximum number of live resources this Pool will allow.
|
int |
maxPendingAcquireSize()
Get the maximum number of
Pool.acquire() this Pool can queue in a pending state
when no available resource is immediately handy (and the Pool cannot allocate more
resources). |
int |
pendingAcquireSize()
Measure the current number of "pending" acquire Monos in the Pool.
|
int acquiredSize()
int allocatedSize()
int idleSize()
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.
int pendingAcquireSize()
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.
int maxAllocatedSize()
A Pool might be unbounded, in which case this method returns Integer.MAX_VALUE
.
int maxPendingAcquireSize()
Pool.acquire()
this Pool can queue in a pending state
when no available resource is immediately handy (and the Pool cannot allocate more
resources).
A Pool pending queue might be unbounded, in which case this method returns
Integer.MAX_VALUE
.