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 |
|---|---|
| public int | Returns: the number of acquired connectionsMeasure the current number of connections that have been successfully
|
| public int | Returns: the total number of allocated connections managed by thePoolMeasure the current number of allocated connections in the |
| public int | Returns: the maximum number of live connections that can be allocated by theConnectionPool.Get the maximum number of live connections this |
| public int | Returns: the maximum number of pending acquire that can be enqueued by theConnectionPool.Get the maximum number of |
| public int | Returns: the number of idle connectionsMeasure the current number of idle connections in the |
| public int | Returns: the number of pending acquireMeasure the current number of "pending" |
| acquiredSize | back to summary |
|---|---|
| public int acquiredSize() Measure the current number of connections that have been successfully
| |
| allocatedSize | back to summary |
|---|---|
| public int allocatedSize() Measure the current number of allocated connections in the
| |
| getMaxAllocatedSize | back to summary |
|---|---|
| public int getMaxAllocatedSize() Get the maximum number of live connections this
A
| |
| getMaxPendingAcquireSize | back to summary |
|---|---|
| public int getMaxPendingAcquireSize() Get the maximum number of
A
| |
| idleSize | back to summary |
|---|---|
| public int idleSize() Measure the current number of idle connections in the
Note that some connections might be lazily evicted when they're next considered
for an incoming
| |
| pendingAcquireSize | back to summary |
|---|---|
| public int pendingAcquireSize() Measure the current number of "pending" 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.
| |