@Contract(threading=IMMUTABLE) public class PoolStats extends Object implements Serializable
The total number of connections in the pool is equal to available plus leased.
| 构造器和说明 |
|---|
PoolStats(int leased,
int pending,
int free,
int max) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2023. All rights reserved.