@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
.
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() |
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