public enum PooledObjectState extends Enum<PooledObjectState>
PooledObject
may be in.Enum Constant and Description |
---|
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. eviction test or validation) and will be / has
been destroyed
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.