com.mongodb
Class ReadPreference.TaggedReadPreference

java.lang.Object
  extended by com.mongodb.ReadPreference
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mongodb.ReadPreference
ReadPreference.TaggedReadPreference
 
Field Summary
 
Fields inherited from class com.mongodb.ReadPreference
PRIMARY, SECONDARY
 
Constructor Summary
ReadPreference.TaggedReadPreference(DBObject tags)
          Deprecated.  
ReadPreference.TaggedReadPreference(Map<String,String> tags)
          Deprecated.  
 
Method Summary
 String getName()
          Deprecated. The name of this read preference.
 DBObject getTags()
          Deprecated.  
 boolean isSlaveOk()
          Deprecated.  
 DBObject toDBObject()
          Deprecated.  
 
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
 

Constructor Detail

ReadPreference.TaggedReadPreference

public ReadPreference.TaggedReadPreference(Map<String,String> tags)
Deprecated. 

ReadPreference.TaggedReadPreference

public ReadPreference.TaggedReadPreference(DBObject tags)
Deprecated. 
Method Detail

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