public enum PoolReusePolicy extends Enum<PoolReusePolicy>
Enum Constant and Description |
---|
FIFO
Re-use all connections equally preventing them from becoming idle and expiring.
|
LIFO
Re-use as few connections as possible making it possible for connections to become idle and expire.
|
Modifier and Type | Method and Description |
---|---|
static PoolReusePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PoolReusePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PoolReusePolicy FIFO
public static final PoolReusePolicy LIFO
public static PoolReusePolicy 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 nullpublic static PoolReusePolicy[] values()
for (PoolReusePolicy c : PoolReusePolicy.values()) System.out.println(c);