Enum FlushStrategy
- All Implemented Interfaces:
Serializable,Comparable<FlushStrategy>,java.lang.constant.Constable
Flush strategy for the pools
- Author:
- Jesper Pedersen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll connectionsAll gracefullyAll idle connectionsAll invalid idle connectionsEntire poolFailing connection only (default)GracefullyIdle connectionsInvalid idle connectionsUnknown -
Method Summary
Modifier and TypeMethodDescriptionstatic FlushStrategyStatic method to get enum instance given localName XsdStringgetName()Get the name of this element.toString()static FlushStrategyReturns the enum constant of this type with the specified name.static FlushStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown -
FAILING_CONNECTION_ONLY
Failing connection only (default) -
INVALID_IDLE_CONNECTIONS
Invalid idle connections -
IDLE_CONNECTIONS
Idle connections -
GRACEFULLY
Gracefully -
ENTIRE_POOL
Entire pool -
ALL_INVALID_IDLE_CONNECTIONS
All invalid idle connections -
ALL_IDLE_CONNECTIONS
All idle connections -
ALL_GRACEFULLY
All gracefully -
ALL_CONNECTIONS
All connections
-
-
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
-
getName
Get the name of this element.- Returns:
- The value
-
toString
- Overrides:
toStringin classEnum<FlushStrategy>
-
forName
Static method to get enum instance given localName XsdString- Parameters:
name- The strategy name- Returns:
- The enum instance
-