Enum FlushStrategy
- java.lang.Object
-
- java.lang.Enum<FlushStrategy>
-
- org.jboss.jca.common.api.metadata.common.FlushStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<FlushStrategy>
public enum FlushStrategy extends Enum<FlushStrategy>
Flush strategy for the pools- Author:
- Jesper Pedersen
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_CONNECTIONSAll connectionsALL_GRACEFULLYAll gracefullyALL_IDLE_CONNECTIONSAll idle connectionsALL_INVALID_IDLE_CONNECTIONSAll invalid idle connectionsENTIRE_POOLEntire poolFAILING_CONNECTION_ONLYFailing connection only (default)GRACEFULLYGracefullyIDLE_CONNECTIONSIdle connectionsINVALID_IDLE_CONNECTIONSInvalid idle connectionsUNKNOWNUnknown
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlushStrategyforName(String name)Static method to get enum instance given localName XsdStringStringgetName()Get the name of this element.StringtoString()static FlushStrategyvalueOf(String name)Returns 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 Detail
-
UNKNOWN
public static final FlushStrategy UNKNOWN
Unknown
-
FAILING_CONNECTION_ONLY
public static final FlushStrategy FAILING_CONNECTION_ONLY
Failing connection only (default)
-
INVALID_IDLE_CONNECTIONS
public static final FlushStrategy INVALID_IDLE_CONNECTIONS
Invalid idle connections
-
IDLE_CONNECTIONS
public static final FlushStrategy IDLE_CONNECTIONS
Idle connections
-
GRACEFULLY
public static final FlushStrategy GRACEFULLY
Gracefully
-
ENTIRE_POOL
public static final FlushStrategy ENTIRE_POOL
Entire pool
-
ALL_INVALID_IDLE_CONNECTIONS
public static final FlushStrategy ALL_INVALID_IDLE_CONNECTIONS
All invalid idle connections
-
ALL_IDLE_CONNECTIONS
public static final FlushStrategy ALL_IDLE_CONNECTIONS
All idle connections
-
ALL_GRACEFULLY
public static final FlushStrategy ALL_GRACEFULLY
All gracefully
-
ALL_CONNECTIONS
public static final FlushStrategy ALL_CONNECTIONS
All connections
-
-
Method Detail
-
values
public static FlushStrategy[] 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 (FlushStrategy c : FlushStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FlushStrategy 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
-
getName
public String getName()
Get the name of this element.- Returns:
- The value
-
toString
public String toString()
- Overrides:
toStringin classEnum<FlushStrategy>
-
forName
public static FlushStrategy forName(String name)
Static method to get enum instance given localName XsdString- Parameters:
name- The strategy name- Returns:
- The enum instance
-
-