public enum SafetyLevel extends Enum<SafetyLevel>
| Enum Constant and Description |
|---|
BASIC |
IGNORE_ERROR |
MAJORITY |
NORMAL |
WAIT_FOR_ALL_SLAVES |
WAIT_FOR_SLAVE |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static SafetyLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SafetyLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SafetyLevel IGNORE_ERROR
public static final SafetyLevel NORMAL
public static final SafetyLevel BASIC
public static final SafetyLevel WAIT_FOR_SLAVE
public static final SafetyLevel WAIT_FOR_ALL_SLAVES
public static final SafetyLevel MAJORITY
public static SafetyLevel[] values()
for (SafetyLevel c : SafetyLevel.values()) System.out.println(c);
public static SafetyLevel 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 int getValue()
Copyright © 2013. All Rights Reserved.