Package org.attribyte.sql.pool
Enum ConnectionPoolConnection.ForceRealClosePolicy
java.lang.Object
java.lang.Enum<ConnectionPoolConnection.ForceRealClosePolicy>
org.attribyte.sql.pool.ConnectionPoolConnection.ForceRealClosePolicy
- All Implemented Interfaces:
Serializable,Comparable<ConnectionPoolConnection.ForceRealClosePolicy>,java.lang.constant.Constable
- Enclosing class:
ConnectionPoolConnection
public static enum ConnectionPoolConnection.ForceRealClosePolicy
extends Enum<ConnectionPoolConnection.ForceRealClosePolicy>
The policy followed when a connection is forcibly closed by the pool
(e.g. when the activity timeout is reached or the connection lifetime expires).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCloses the connection on force real close.Closes the connection on force real close with a time limit.Do nothing.Attempts to close all open statements before connection on force real close. -
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
-
CONNECTION
Closes the connection on force real close. -
CONNECTION_WITH_LIMIT
Closes the connection on force real close with a time limit.If the connection close fails to complete, the connection is left in an undefined state.
-
STATEMENTS_AND_CONNECTION
Attempts to close all open statements before connection on force real close. -
NONE
Do nothing. Don't even call real close.
-
-
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
-