Package org.attribyte.sql.pool
Enum ConnectionPoolConnection.ActivityTimeoutPolicy
java.lang.Object
java.lang.Enum<ConnectionPoolConnection.ActivityTimeoutPolicy>
org.attribyte.sql.pool.ConnectionPoolConnection.ActivityTimeoutPolicy
- All Implemented Interfaces:
Serializable,Comparable<ConnectionPoolConnection.ActivityTimeoutPolicy>,java.lang.constant.Constable
- Enclosing class:
ConnectionPoolConnection
public static enum ConnectionPoolConnection.ActivityTimeoutPolicy
extends Enum<ConnectionPoolConnection.ActivityTimeoutPolicy>
How are connections that have exceeded the activity timeout handled?
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCauses the connection to be closed, even though operations may be pending in another thread.Timeout is logged, but the connection remains active and unavailable until it is returned to the pool. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FORCE_CLOSE
Causes the connection to be closed, even though operations may be pending in another thread. In general, this is probably not thread-safe and deadlock is possible if connection operations are pending in the application thread. -
LOG
Timeout is logged, but the connection remains active and unavailable until it is returned to the pool.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-