public class PoolStatus extends Status
| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN_COUNT
Return value for
getActiveCount() and getIdleCount()
when pool metrics are unknown or unknowable. |
| Constructor and Description |
|---|
PoolStatus(StatusCode code,
String desc,
int active,
int idle)
Creates a new status object with the given code.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveCount()
Gets the number of active pool resources.
|
int |
getIdleCount()
Gets the number of idle pool resources.
|
getCode, getDescriptionpublic static final int UNKNOWN_COUNT
getActiveCount() and getIdleCount()
when pool metrics are unknown or unknowable.public PoolStatus(StatusCode code, String desc, int active, int idle)
code - Status code.desc - Human-readable status description.active - number of active pool resourcesidle - number of idle pool resourcesStatus.getCode()Copyright © 2004-2015 Apereo. All Rights Reserved.