The total number of connections in the pool is equal to available plus leased.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: number idle persistent connections.Gets the number idle persistent connections. |
| public int | Returns: the number of persistent connections.Gets the number of persistent connections tracked by the connection manager currently being used to execute requests. |
| public int | Returns: the maximum number of allowed persistent connections.Gets the maximum number of allowed persistent connections. |
| public int | Returns: the number of connection requests being blocked awaiting a free connection.Gets the number of connection requests being blocked awaiting a free connection. |
| public String |
| available | back to summary |
|---|---|
| private final int available | |
| leased | back to summary |
|---|---|
| private final int leased | |
| max | back to summary |
|---|---|
| private final int max | |
| pending | back to summary |
|---|---|
| private final int pending | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| PoolStats | back to summary |
|---|---|
| public PoolStats(final int leased, final int pending, final int free, final int max) | |
| getAvailable | back to summary |
|---|---|
| public int getAvailable() Gets the number idle persistent connections.
The total number of connections in the pool is equal to
| |
| getLeased | back to summary |
|---|---|
| public int getLeased() Gets the number of persistent connections tracked by the connection manager currently being used to execute requests.
The total number of connections in the pool is equal to
| |
| getMax | back to summary |
|---|---|
| public int getMax() Gets the maximum number of allowed persistent connections.
| |
| getPending | back to summary |
|---|---|
| public int getPending() Gets the number of connection requests being blocked awaiting a free connection. This can happen only if there are more worker threads contending for fewer connections.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |