@Immutable public abstract class TaggableReadPreference extends ReadPreference
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<TagSet> |
getTagSetList()
Gets the list of tag sets as a list of
TagSet instances. |
int |
hashCode() |
boolean |
isSlaveOk()
True if this read preference allows reading from a secondary member of a replica set.
|
BsonDocument |
toDocument()
Gets a document representing this read preference in the wire protocol.
|
String |
toString() |
choose, getName, nearest, nearest, nearest, primary, primaryPreferred, primaryPreferred, primaryPreferred, secondary, secondary, secondary, secondaryPreferred, secondaryPreferred, secondaryPreferred, valueOf, valueOf
public boolean isSlaveOk()
ReadPreference
isSlaveOk
in class ReadPreference
public BsonDocument toDocument()
ReadPreference
toDocument
in class ReadPreference
public List<TagSet> getTagSetList()
TagSet
instances.