public abstract class TaggableReadPreference extends ReadPreference
ReadPreference.TaggedReadPreference
PRIMARY, SECONDARY
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<TagSet> |
getTagSetList()
Gets the list of tag sets as a list of
TagSet instances. |
java.util.List<DBObject> |
getTagSets()
Deprecated.
use the
getTagSetList method instead |
int |
hashCode() |
boolean |
isSlaveOk()
True if this read preference allows reading from a secondary member of a replica set.
|
DBObject |
toDBObject()
Deprecated.
|
java.lang.String |
toString() |
getName, nearest, nearest, nearest, nearest, primary, primaryPreferred, primaryPreferred, primaryPreferred, primaryPreferred, secondary, secondary, secondary, secondary, secondaryPreferred, secondaryPreferred, secondaryPreferred, secondaryPreferred, valueOf, valueOf, valueOf, withTags, withTags
public boolean isSlaveOk()
ReadPreference
isSlaveOk
in class ReadPreference
@Deprecated public DBObject toDBObject()
ReadPreference
DBObject
.toDBObject
in class ReadPreference
DBObject
representation of this preferencepublic java.util.List<TagSet> getTagSetList()
TagSet
instances.@Deprecated public java.util.List<DBObject> getTagSets()
getTagSetList
method insteadgetTagSetList()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object