public static enum FailoverConfig.FailoverStrategy extends 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(String name)
Returns the enum constant of this type with the specified name.
|
static FailoverConfig.FailoverStrategy |
valueOfIgnoreCase(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static FailoverConfig.FailoverStrategy valueOfIgnoreCase(String string, boolean exceptionOnNull)
string
- exceptionOnNull
- will not allow null or blank entriesCopyright © 2016 Internet2. All rights reserved.