com.mongodb
Class ReadPreference.TaggedReadPreference
java.lang.Object
com.mongodb.ReadPreference
com.mongodb.ReadPreference.TaggedReadPreference
- Enclosing class:
- ReadPreference
Deprecated. As of release 2.9, replaced by
ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets)
@Deprecated
public static class ReadPreference.TaggedReadPreference
- extends ReadPreference
Read from a secondary if available and matches tags.
Methods inherited from class com.mongodb.ReadPreference |
nearest, nearest, primary, primaryPreferred, primaryPreferred, secondary, secondary, secondaryPreferred, secondaryPreferred, valueOf, valueOf, withTags, withTags |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadPreference.TaggedReadPreference
public ReadPreference.TaggedReadPreference(Map<String,String> tags)
- Deprecated.
ReadPreference.TaggedReadPreference
public ReadPreference.TaggedReadPreference(DBObject tags)
- Deprecated.
getTags
public DBObject getTags()
- Deprecated.
isSlaveOk
public boolean isSlaveOk()
- Deprecated.
- Specified by:
isSlaveOk
in class ReadPreference
- Returns:
true
if this preference allows reads or commands from secondary nodes
toDBObject
public DBObject toDBObject()
- Deprecated.
- Specified by:
toDBObject
in class ReadPreference
- Returns:
DBObject
representation of this preference
getName
public String getName()
- Deprecated.
- Description copied from class:
ReadPreference
- The name of this read preference.
- Specified by:
getName
in class ReadPreference
- Returns:
- the name