public enum WhenExhaustedAction extends Enum<WhenExhaustedAction>
PooledGMService.getConnection() method when the pool is exhausted.| Enum Constant and Description |
|---|
BLOCK
Blocks until a new or idle connection is available.
|
FAIL
Throw a
NoSuchElementException. |
GROW
Create a new connection and return it (essentially making maxActive meaningless).
|
| Modifier and Type | Method and Description |
|---|---|
static WhenExhaustedAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WhenExhaustedAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WhenExhaustedAction FAIL
NoSuchElementException.public static final WhenExhaustedAction BLOCK
public static final WhenExhaustedAction GROW
public static WhenExhaustedAction[] values()
for (WhenExhaustedAction c : WhenExhaustedAction.values()) System.out.println(c);
public static WhenExhaustedAction 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 © 2016. All Rights Reserved.