public static enum ConnectionPoolConnection.ActivityTimeoutPolicy extends java.lang.Enum<ConnectionPoolConnection.ActivityTimeoutPolicy>
| Enum Constant and Description |
|---|
FORCE_CLOSE
Causes the connection to be closed, even though operations may be pending in another thread.
|
LOG
Timeout is logged, but the connection remains active
and unavailable until it is returned to the pool.
|
| Modifier and Type | Method and Description |
|---|---|
static ConnectionPoolConnection.ActivityTimeoutPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionPoolConnection.ActivityTimeoutPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionPoolConnection.ActivityTimeoutPolicy FORCE_CLOSE
public static final ConnectionPoolConnection.ActivityTimeoutPolicy LOG
public static ConnectionPoolConnection.ActivityTimeoutPolicy[] values()
for (ConnectionPoolConnection.ActivityTimeoutPolicy c : ConnectionPoolConnection.ActivityTimeoutPolicy.values()) System.out.println(c);
public static ConnectionPoolConnection.ActivityTimeoutPolicy 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 null