public enum ReadPreference extends java.lang.Enum<ReadPreference>
| Enum Constant and Description |
|---|
NEAREST |
PRIMARY |
PRIMARY_PREFERRED |
SECONDARY |
SECONDARY_PREFERRED |
| Modifier and Type | Method and Description |
|---|---|
static ReadPreference |
fromString(java.lang.String name) |
java.lang.String |
toString() |
static ReadPreference |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReadPreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadPreference PRIMARY
public static final ReadPreference PRIMARY_PREFERRED
public static final ReadPreference SECONDARY
public static final ReadPreference SECONDARY_PREFERRED
public static final ReadPreference NEAREST
public static ReadPreference[] values()
for (ReadPreference c : ReadPreference.values()) System.out.println(c);
public static ReadPreference 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 java.lang.String toString()
toString in class java.lang.Enum<ReadPreference>public static ReadPreference fromString(java.lang.String name)