public static enum FailoverConfig.FailoverStrategy extends java.lang.Enum<FailoverConfig.FailoverStrategy>
Enum Constant and Description |
---|
activeActive
if should try allow by equal chance (when there is a reason to pick and not affinity
|
activeStandby
if all other things are queal, try the first connection type
|
Modifier and Type | Method and Description |
---|---|
static FailoverConfig.FailoverStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FailoverConfig.FailoverStrategy |
valueOfIgnoreCase(java.lang.String string,
boolean exceptionOnNull)
do a case-insensitive matching
|
static FailoverConfig.FailoverStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FailoverConfig.FailoverStrategy activeActive
public static final FailoverConfig.FailoverStrategy activeStandby
public static FailoverConfig.FailoverStrategy[] values()
for (FailoverConfig.FailoverStrategy c : FailoverConfig.FailoverStrategy.values()) System.out.println(c);
public static FailoverConfig.FailoverStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static FailoverConfig.FailoverStrategy valueOfIgnoreCase(java.lang.String string, boolean exceptionOnNull)
string
- exceptionOnNull
- will not allow null or blank entries