Package com.securenative.enums
Enum FailoverStrategy
- java.lang.Object
-
- java.lang.Enum<FailoverStrategy>
-
- com.securenative.enums.FailoverStrategy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FailoverStrategy>,java.lang.constant.Constable
public enum FailoverStrategy extends java.lang.Enum<FailoverStrategy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAIL_CLOSEDFAIL_OPEN
-
Method Summary
Modifier and Type Method Description static FailoverStrategyfromString(java.lang.String key, FailoverStrategy failoverStrategy)java.lang.StringgetFailoverStrategy()static FailoverStrategyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FailoverStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAIL_OPEN
public static final FailoverStrategy FAIL_OPEN
-
FAIL_CLOSED
public static final FailoverStrategy FAIL_CLOSED
-
-
Method Detail
-
values
public static FailoverStrategy[] 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
public static FailoverStrategy valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getFailoverStrategy
public java.lang.String getFailoverStrategy()
-
fromString
public static FailoverStrategy fromString(java.lang.String key, FailoverStrategy failoverStrategy)
-
-