public enum ReadPreferenceLevel extends Enum<ReadPreferenceLevel>
| Enum Constant and Description |
|---|
NEAREST |
PRIMARY |
PRIMARY_PREFERRED |
SECONDARY |
SECONDARY_PREFERRED |
| Modifier and Type | Method and Description |
|---|---|
ReadPreference |
getPref() |
void |
setPref(ReadPreference pref) |
static ReadPreferenceLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadPreferenceLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadPreferenceLevel PRIMARY
public static final ReadPreferenceLevel PRIMARY_PREFERRED
public static final ReadPreferenceLevel SECONDARY
public static final ReadPreferenceLevel SECONDARY_PREFERRED
public static final ReadPreferenceLevel NEAREST
public static ReadPreferenceLevel[] values()
for (ReadPreferenceLevel c : ReadPreferenceLevel.values()) System.out.println(c);
public static ReadPreferenceLevel 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 ReadPreference getPref()
public void setPref(ReadPreference pref)
Copyright © 2021. All rights reserved.