|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PooledObjectState>
org.apache.commons.pool2.PooledObjectState
public enum PooledObjectState
Provides the possible states that a PooledObject
may be in.
Enum Constant Summary | |
---|---|
ABANDONED
Deemed abandoned, to be invalidated. |
|
ALLOCATED
In use. |
|
EVICTION
In the queue, currently being tested for possible eviction. |
|
EVICTION_RETURN_TO_HEAD
Not in the queue, currently being tested for possible eviction. |
|
IDLE
In the queue, not in use. |
|
INVALID
Failed maintenance (e.g. |
|
RETURNING
Returning to the pool. |
|
VALIDATION
In the queue, currently being validated. |
|
VALIDATION_PREALLOCATED
Not in queue, currently being validated. |
|
VALIDATION_RETURN_TO_HEAD
Not in queue, currently being validated. |
Method Summary | |
---|---|
static PooledObjectState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PooledObjectState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PooledObjectState IDLE
public static final PooledObjectState ALLOCATED
public static final PooledObjectState EVICTION
public static final PooledObjectState EVICTION_RETURN_TO_HEAD
public static final PooledObjectState VALIDATION
public static final PooledObjectState VALIDATION_PREALLOCATED
public static final PooledObjectState VALIDATION_RETURN_TO_HEAD
public static final PooledObjectState INVALID
public static final PooledObjectState ABANDONED
public static final PooledObjectState RETURNING
Method Detail |
---|
public static PooledObjectState[] values()
for (PooledObjectState c : PooledObjectState.values()) System.out.println(c);
public static PooledObjectState valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |