@Contract(threading=IMMUTABLE) public class PoolStats extends java.lang.Object implements java.io.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.
|
java.lang.String |
toString() |
private static final long serialVersionUID
private final int leased
private final int pending
private final int available
private final 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()
public java.lang.String toString()
toString
in class java.lang.Object