Serializable, Comparable<FailoverStrategy>public enum FailoverStrategy extends Enum<FailoverStrategy>
| Enum Constant | Description |
|---|---|
FAIL_CLOSED |
|
FAIL_OPEN |
| Modifier and Type | Method | Description |
|---|---|---|
static FailoverStrategy |
fromString(String key,
FailoverStrategy failoverStrategy) |
|
String |
getFailoverStrategy() |
|
static FailoverStrategy |
valueOf(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.
|
public static final FailoverStrategy FAIL_OPEN
public static final FailoverStrategy FAIL_CLOSED
public static FailoverStrategy[] values()
for (FailoverStrategy c : FailoverStrategy.values()) System.out.println(c);
public static 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 String getFailoverStrategy()
public static FailoverStrategy fromString(String key, FailoverStrategy failoverStrategy)
Copyright © 2020. All rights reserved.