@Contract(threading=IMMUTABLE) public class PoolStats extends Object implements Serializable
The total number of connections in the pool is equal to available plus leased.
| Constructor and Description |
|---|
PoolStats(int leased,
int pending,
int free,
int max) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAvailable()
Gets the number idle persistent connections.
|
int |
getLeased()
Gets the number of persistent connections tracked by the connection manager currently being used to execute
requests.
|
int |
getMax()
Gets the maximum number of allowed persistent connections.
|
int |
getPending()
Gets the number of connection requests being blocked awaiting a free connection.
|
String |
toString() |
public int getLeased()
The total number of connections in the pool is equal to available plus leased.
public int getPending()
public int getAvailable()
The total number of connections in the pool is equal to available plus leased.
public int getMax()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.