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