ConnectionPool.
Expose PoolMetrics values to JMX.
PoolMetrics
| 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 number of idle connectionsMeasure the current number of idle 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 pending acquireMeasure the current number of "pending" |
| DOMAIN | back to summary |
|---|---|
| public static final String DOMAIN | |
| getAcquiredSize | back to summary |
|---|---|
| public int getAcquiredSize() Measure the current number of connections that have been successfully
| |
| getAllocatedSize | back to summary |
|---|---|
| public int getAllocatedSize() Measure the current number of allocated connections in the
| |
| getIdleSize | back to summary |
|---|---|
| public int getIdleSize() 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
| |
| 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
| |
| getPendingAcquireSize | back to summary |
|---|---|
| public int getPendingAcquireSize() 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.
| |