com.mongodb
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<DBObject> |
getTagSets() |
int |
hashCode() |
boolean |
isSlaveOk() |
DBObject |
toDBObject() |
java.lang.String |
toString() |
getName, nearest, nearest, primary, primaryPreferred, primaryPreferred, secondary, secondary, secondaryPreferred, secondaryPreferred, valueOf, valueOf, withTags, withTags
public boolean isSlaveOk()
isSlaveOk
in class ReadPreference
true
if this preference allows reads or commands from secondary nodespublic DBObject toDBObject()
toDBObject
in class ReadPreference
DBObject
representation of this preferencepublic java.util.List<DBObject> getTagSets()
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