public static enum ConnectionRemovedEvent.Reason extends java.lang.Enum<ConnectionRemovedEvent.Reason>
Enum Constant and Description |
---|
ERROR
The connection experienced an error, making it no longer valid
|
MAX_IDLE_TIME_EXCEEDED
The connection became stale by being idle for too long
|
MAX_LIFE_TIME_EXCEEDED
The connection became stale by being open for too long
|
POOL_CLOSED
The pool was closed, making the connection no longer valid
|
STALE
The pool became stale because the pool has been cleared
|
UNKNOWN
Reason unknown
|
Modifier and Type | Method and Description |
---|---|
static ConnectionRemovedEvent.Reason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionRemovedEvent.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionRemovedEvent.Reason UNKNOWN
public static final ConnectionRemovedEvent.Reason STALE
public static final ConnectionRemovedEvent.Reason MAX_IDLE_TIME_EXCEEDED
public static final ConnectionRemovedEvent.Reason MAX_LIFE_TIME_EXCEEDED
public static final ConnectionRemovedEvent.Reason ERROR
public static final ConnectionRemovedEvent.Reason POOL_CLOSED
public static ConnectionRemovedEvent.Reason[] values()
for (ConnectionRemovedEvent.Reason c : ConnectionRemovedEvent.Reason.values()) System.out.println(c);
public static ConnectionRemovedEvent.Reason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2010 - 2023 Adobe. All Rights Reserved