Deprecated API


Contents
Deprecated Classes
com.mongodb.DBPointer
            
com.mongodb.ReadPreference.TaggedReadPreference
          As of release 2.9, replaced by ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets) 
com.mongodb.util.ThreadPool
          This class is no longer in use and should not have been public. It may be removed in a future release. 
 

Deprecated Fields
com.mongodb.Mongo.MAJOR_VERSION
          Replaced by Mongo.getMajorVersion() 
com.mongodb.Mongo.MINOR_VERSION
          Replaced by Mongo.getMinorVersion() 
com.mongodb.ReadPreference.PRIMARY
          As of release 2.9.0, replaced by ReadPreference.primary() 
com.mongodb.ReadPreference.SECONDARY
          As of release 2.9.0, replaced by ReadPreference.secondaryPreferred() 
com.mongodb.MongoOptions.slaveOk
          Replaced with ReadPreference.secondaryPreferred() 
 

Deprecated Methods
com.mongodb.RawDBObject.containsKey(String)
            
com.mongodb.ReflectionDBObject.containsKey(String)
            
com.mongodb.ReflectionDBObject.JavaWrapper.containsKey(String)
            
com.mongodb.gridfs.GridFSFile.containsKey(String)
           
org.bson.BSONObject.containsKey(String)
            
org.bson.LazyBSONObject.containsKey(String)
           
org.bson.BasicBSONObject.containsKey(String)
            
org.bson.types.BasicBSONList.containsKey(String)
            
com.mongodb.DBCollection.find(DBObject, DBObject, int, int)
           
com.mongodb.DBCollection.find(DBObject, DBObject, int, int, int)
           
com.mongodb.MapReduceOutput.getRaw()
           
org.bson.BasicBSONCallback.gotBinaryArray(String, byte[])
           
org.bson.EmptyBSONCallback.gotBinaryArray(String, byte[])
           
org.bson.BSONCallback.gotBinaryArray(String, byte[])
           
com.mongodb.DBCollection.group(DBObject)
          prefer the DBCollection.group(com.mongodb.GroupCommand) which is more standard Applies a group operation 
com.mongodb.DBCursor.slaveOk()
          Replaced with ReadPreference.secondaryPreferred() 
com.mongodb.DB.slaveOk()
          Replaced with ReadPreference.secondaryPreferred() 
com.mongodb.Mongo.slaveOk()
          Replaced with ReadPreference.secondaryPreferred() 
com.mongodb.DBCollection.slaveOk()
          Replaced with ReadPreference.secondaryPreferred() 
com.mongodb.ReadPreference.withTags(DBObject)
          As of release 2.9.0, replaced by ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets) 
com.mongodb.ReadPreference.withTags(Map)
          As of release 2.9.0, replaced by ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets) 
 

Deprecated Constructors
com.mongodb.Mongo(ServerAddress, ServerAddress)
           
com.mongodb.Mongo(ServerAddress, ServerAddress, MongoOptions)