Package io.agroal.pool
Enum ConnectionHandler.State
- java.lang.Object
-
- java.lang.Enum<ConnectionHandler.State>
-
- io.agroal.pool.ConnectionHandler.State
-
- All Implemented Interfaces:
Serializable,Comparable<ConnectionHandler.State>
- Enclosing class:
- ConnectionHandler
public static enum ConnectionHandler.State extends Enum<ConnectionHandler.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECKED_INCHECKED_OUTDESTROYEDFLUSHNEWVALIDATION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionHandler.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static ConnectionHandler.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final ConnectionHandler.State NEW
-
CHECKED_IN
public static final ConnectionHandler.State CHECKED_IN
-
CHECKED_OUT
public static final ConnectionHandler.State CHECKED_OUT
-
VALIDATION
public static final ConnectionHandler.State VALIDATION
-
FLUSH
public static final ConnectionHandler.State FLUSH
-
DESTROYED
public static final ConnectionHandler.State DESTROYED
-
-
Method Detail
-
values
public static ConnectionHandler.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConnectionHandler.State c : ConnectionHandler.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionHandler.State valueOf(String name)
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
-
-