@Contract(threading=IMMUTABLE) public class PoolStats extends Object implements Serializable
The total number of connections in the pool is equal to available
plus leased
.
Modifier and Type | Field and Description |
---|---|
private int |
available |
private int |
leased |
private int |
max |
private int |
pending |
private static long |
serialVersionUID |
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() |
private static final long serialVersionUID
private final int leased
private final int pending
private final int available
private final int max
public PoolStats(int leased, int pending, int free, int max)
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()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses