Interface and Description |
---|
com.mongodb.DBConnector
This class is NOT part of the public API. It will be dropped in 3.x releases.
|
com.mongodb.Java5MongoConnectionPoolMBean
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
com.mongodb.MongoConnectionPoolMXBean
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
Class and Description |
---|
com.mongodb.util.Args
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.util.Assertions
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.Base64Codec
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.BasicBSONDecoder.BSONInput
This class should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
org.bson.BSONLazyDecoder
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.tools.ConnectionPoolStat
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
com.mongodb.util.ConnectionPoolStatisticsBean
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
com.mongodb.DBApiLayer
This class is NOT part of the public API. It will be dropped in 3.x releases.
|
com.mongodb.DBPointer
BSON type DBPointer(0x0c) is deprecated. Please use a
DBRef instead. |
com.mongodb.DBPort
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DBPortPool
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DBTCPConnector
This class is NOT part of the public API. It will be dropped in 3.x releases.
|
com.mongodb.util.FastStack
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.Hash
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.IdentitySet
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.InUseConnectionBean
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
|
org.bson.KeyCachingLazyBSONObject
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.LazyBSONObject.LazyBSONKeySet
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.LazyDBList
Please use
LazyDBList instead. |
com.mongodb.MongoOptions
Replaced by
MongoClientOptions . |
org.bson.NewBSONDecoder
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.OptionMap
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.PoolOutputBuffer
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.RawDBObject
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.ReadPreference.TaggedReadPreference
As of release 2.9, replaced by
ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets) |
com.mongodb.util.SimplePool
This class is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.util.SimplePool
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.StringBuilderPool
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.StringParseUtil
This class is NOT a part of public API and will be dropped in 3.x versions.
|
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.
|
com.mongodb.util.ThreadUtil
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.TimeConstants
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.UniqueList
This class is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.util.WeakBag
This class is NOT a part of public API and will be dropped in 3.x versions.
|
Exceptions and Description |
---|
com.mongodb.DBPortPool.ConnectionWaitTimeOut
This class will be dropped in 3.x versions.
Please catch
MongoTimeoutException instead. |
com.mongodb.DBPortPool.NoMoreConnection
This class will be dropped in 3.x versions.
Please catch
MongoClientException instead. |
com.mongodb.DBPortPool.SemaphoresOut
This class will be dropped in 3.x versions.
Please catch
MongoWaitQueueFullException instead. |
com.mongodb.MongoException.CursorNotFound
This class will be dropped in 3.x versions.
Please catch
MongoCursorNotFoundException instead. |
com.mongodb.MongoException.DuplicateKey
This class will be dropped in 3.x versions.
Please catch
DuplicateKeyException instead. |
com.mongodb.MongoException.Network
This class will be dropped in 3.x versions.
Please catch
MongoSocketException instead. |
Field and Description |
---|
com.mongodb.gridfs.GridFS._bucketName
Please use
GridFS.getBucketName() for access. |
org.bson.BasicBSONEncoder._buf
Replaced by
BasicBSONEncoder.getOutputBuffer() . |
org.bson.LazyBSONObject._callback
This field is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.BasicBSONDecoder._callback
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
com.mongodb.gridfs.GridFS._chunkCollection
Please use
GridFS.getChunksCollection() for access. |
com.mongodb.AggregationOutput._cmd
Please use
AggregationOutput.getCommand() instead. |
com.mongodb.AggregationOutput._commandResult
Please use
AggregationOutput.getCommandResult() instead. |
com.mongodb.gridfs.GridFS._db
Please use
GridFS.getDB() for access. |
org.bson.LazyBSONObject._doc_start_offset
Please use
LazyBSONObject.getOffset() instead. |
com.mongodb.gridfs.GridFS._filesCollection
Please use
GridFS.getFilesCollection() for access. |
com.mongodb.gridfs.GridFSFile._fs
Please use
GridFSFile.getGridFS() & GridFSFile.setGridFS(GridFS) instead. |
com.mongodb.DBCollection._fullName
Please use
DBCollection.getFullName() instead. |
com.mongodb.DBCollection._hintFields
Please use
DBCollection.setHintFields(java.util.List) and DBCollection.getHintFields() instead. |
org.bson.BasicBSONDecoder._in
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
org.bson.LazyBSONObject._input
Please use
LazyBSONObject.getBytes() to access underlying bytes. |
org.bson.BasicBSONDecoder._len
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
com.mongodb.DBCollection._name
Please use
DBCollection.getName() instead. |
com.mongodb.DBCollection._objectClass
Please use
DBCollection.getObjectClass() and DBCollection.setObjectClass(Class) instead. |
org.bson.BasicBSONDecoder._pos
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
com.mongodb.DB._readOnly |
com.mongodb.AggregationOutput._resultSet
Please use
AggregationOutput.results() instead. |
org.bson.BSON._utf8
Use
Charset.forName(String) to create UTF-8 charset. |
com.mongodb.MongoOptions.autoConnectRetry
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.WriteConcern.ERRORS_IGNORED
There is no replacement for this write concern. The closest would be to use WriteConcern#UNACKNOWLEDGED,
then catch and ignore any exceptions of type MongoSocketException.
|
com.mongodb.Mongo.MAJOR_VERSION
Replaced by
Mongo.getMajorVersion() |
com.mongodb.gridfs.GridFS.MAX_CHUNKSIZE
You can calculate max chunkSize with
a similar formula
Mongo.getMaxBsonObjectSize() - 500*1000.
Please ensure that you left enough space for metadata (500kb is enough). |
com.mongodb.MongoOptions.maxAutoConnectRetryTime
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.Mongo.MINOR_VERSION
Replaced by
Mongo.getMinorVersion() |
com.mongodb.WriteConcern.NONE |
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() |
Method and Description |
---|
org.bson.BasicBSONDecoder._binary(String)
This method should not be a part of API.
Please see the class-level documentation for a migration instructions.
|
com.mongodb.DBCollection._checkObject(DBObject, boolean, boolean)
This method should not be a part of API.
If you override one of the
DBCollection methods please rely on superclass
implementation in checking argument correctness and validity. |
com.mongodb.gridfs.GridFS._fix(Object)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.types.ObjectId._flip(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.types.ObjectId._inc()
Please use
ObjectId.toByteArray() instead. |
org.bson.types.ObjectId._machine()
Please use
ObjectId.toByteArray() instead. |
org.bson.BasicBSONEncoder._put(byte, String)
This method is NOT a part of public API and will be dropped in 3.x versions.
Access buffer directly via
BasicBSONEncoder.getOutputBuffer() if you need to change how BSON is written. |
org.bson.BasicBSONEncoder._put(String)
Replaced by
getOutputBuffer().writeCString(String) . |
org.bson.BasicBSONEncoder._putValueString(String)
This method is NOT a part of public API and will be dropped in 3.x versions.
Access buffer directly via
BasicBSONEncoder.getOutputBuffer() if you need to change how BSON is written.
Otherwise override BasicBSONEncoder.putString(String, String) . |
org.bson.types.ObjectId._time()
Please use
ObjectId.getTimestamp() ()} instead. |
com.mongodb.DB.addUser(String, char[])
Use
DB.command to call either the addUser or updateUser command |
com.mongodb.DB.addUser(String, char[], boolean)
Use
DB.command to call either the addUser or updateUser command |
com.mongodb.DBCollection.aggregate(DBObject, DBObject...)
Use
DBCollection.aggregate(java.util.List) instead |
org.bson.io.OutputBuffer.asString()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.BasicOutputBuffer.asString()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.PoolOutputBuffer.asString(String)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.OutputBuffer.asString(String)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.BasicOutputBuffer.asString(String)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DB.authenticate(String, char[])
Please use
MongoClient.MongoClient(java.util.List, java.util.List) to create a client, which
will authenticate all connections to server |
com.mongodb.DB.authenticateCommand(String, char[])
Please use
MongoClient.MongoClient(java.util.List, java.util.List) to create a client, which
will authenticate all connections to server |
com.mongodb.MongoClientOptions.Builder.autoConnectRetry(boolean)
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
org.bson.types.ObjectId.babbleToMongod(String)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DBCollection.checkReadOnly(boolean) |
com.mongodb.DB.cleanCursors(boolean)
Clients should ensure that
DBCursor.close() is called. |
com.mongodb.DB.command(DBObject, int)
Use
DB.command(DBObject, ReadPreference) instead. This method will be removed in 3.0. |
com.mongodb.DB.command(DBObject, int, DBEncoder)
Use
DB.command(DBObject, ReadPreference, DBEncoder) instead. This method will be removed in 3.0. |
com.mongodb.DB.command(DBObject, int, ReadPreference)
Use
DB.command(DBObject, ReadPreference) instead. This method will be removed in 3.0. |
com.mongodb.DB.command(DBObject, int, ReadPreference, DBEncoder)
Use
DB.command(DBObject, ReadPreference, DBEncoder) instead. This method will be removed in 3.0. |
com.mongodb.DB.command(String, int)
Use
DB.command(String, ReadPreference) instead. This method will be removed in 3.0. |
com.mongodb.Mongo.connect(DBAddress)
Please use
Mongo.getDB(String) instead. |
com.mongodb.Mongo.Holder.connect(MongoURI)
Please use
Mongo.Holder.connect(MongoClientURI) instead. |
com.mongodb.ReflectionDBObject.containsKey(String) |
com.mongodb.ReflectionDBObject.JavaWrapper.containsKey(String) |
com.mongodb.RawDBObject.containsKey(String) |
com.mongodb.gridfs.GridFSFile.containsKey(String) |
org.bson.LazyBSONObject.containsKey(String) |
org.bson.BSONObject.containsKey(String) |
org.bson.BasicBSONObject.containsKey(String) |
org.bson.types.BasicBSONList.containsKey(String) |
com.mongodb.WriteConcern.continueOnErrorForInsert(boolean)
Use continueOnError instead
|
com.mongodb.DBCollection.createIndex(DBObject, DBObject, DBEncoder)
use
DBCollection.createIndex(DBObject, com.mongodb.DBObject) the encoder is not used. |
com.mongodb.Mongo.debugString()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DBCollection.ensureIndex(DBObject)
use
DBCollection.createIndex(DBObject) instead |
com.mongodb.DBCollection.ensureIndex(DBObject, DBObject)
use
DBCollection.createIndex(DBObject, DBObject) instead |
com.mongodb.DBCollection.ensureIndex(DBObject, String)
use
DBCollection.createIndex(DBObject, DBObject) instead |
com.mongodb.DBCollection.ensureIndex(DBObject, String, boolean)
use
DBCollection.createIndex(DBObject, DBObject) instead |
com.mongodb.DBCollection.ensureIndex(String)
use
DBCollection.createIndex(DBObject) instead |
com.mongodb.DBCollection.find(DBObject, DBObject, int, int)
use
DBCursor.skip(int) and DBCursor.batchSize(int) on the DBCursor
returned from DBCollection.find(DBObject, DBObject) |
com.mongodb.DBCollection.find(DBObject, DBObject, int, int, int)
use
DBCursor.skip(int) , DBCursor.batchSize(int) and DBCursor.setOptions(int) on the DBCursor returned from DBCollection.find(DBObject,
DBObject) |
com.mongodb.DB.forceError()
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
com.mongodb.DBCollection.genIndexName(DBObject)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.WriteResult.getCachedLastError()
Use the appropriate
WriteConcern and rely on the write operation to throw an exception on failure. For
successful writes, use the helper methods to retrieve specific values from the write response. |
com.mongodb.AggregationOutput.getCommand()
there is no replacement for this method
|
com.mongodb.MapReduceOutput.getCommandResult()
It is not recommended to access the command result returned by the server as the format can change between releases. This
has been replaced with a series of specific getters for the values on the CommandResult (getCollectionName, getDatabaseName,
getDuration, getEmitCount, getOutputCount, getInputCount). The method
results() will continue to return an Iterable<DBObjects> , that should be used to obtain the results of the map-reduce. This method will be removed in 3.0. |
com.mongodb.AggregationOutput.getCommandResult()
there is no replacement for this method
|
com.mongodb.Mongo.getConnector()
DBTCPConnector is NOT part of the public API. It will be dropped in 3.x releases. |
com.mongodb.WriteConcern.getContinueOnErrorForInsert()
Use getContinueOnError instead
|
org.bson.types.ObjectId.getCurrentInc()
Please use
ObjectId.getCurrentCounter() instead. |
org.bson.LazyBSONObject.getElementBSONSize(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.LazyBSONObject.getElementType(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.LazyBSONObject.getElementValue(LazyBSONObject.ElementRecord)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.WriteResult.getError()
There should be no reason to use this method. The error message will be in the exception thrown for an
unsuccessful write operation.
|
com.mongodb.WriteResult.getField(String)
There should be no reason to use this method. To get specific fields from a successful write,
use the helper methods provided. Any error-related fields will be in the exception thrown for an unsuccessful write operation.
|
org.bson.types.ObjectId.getGenMachineId() |
org.bson.types.ObjectId.getInc()
Please use the
ObjectId.toByteArray() instead. |
com.mongodb.WriteResult.getLastError()
Use the appropriate
WriteConcern and allow the write operation to throw an exception on failure. For
successful writes, use the helper methods to retrieve specific values from the write response. |
com.mongodb.DB.getLastError()
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
com.mongodb.DB.getLastError(int, int, boolean)
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
com.mongodb.WriteResult.getLastError(WriteConcern)
Use the appropriate
WriteConcern and rely on the write operation to throw an
exception on failure. For successful writes, use the helper methods to retrieve specific values from the write response. |
com.mongodb.DB.getLastError(WriteConcern)
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
org.bson.types.ObjectId.getMachine()
Please use
#toByteArray() instead. |
com.mongodb.Mongo.getMajorVersion()
Please use
Mongo.getVersion() instead. |
com.mongodb.MongoOptions.getMaxAutoConnectRetryTime()
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.MongoClientOptions.getMaxAutoConnectRetryTime()
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.Mongo.getMinorVersion()
Please use
Mongo.getVersion() instead. |
com.mongodb.Mongo.getMongoOptions()
Please use
MongoClient
and corresponding MongoClient.getMongoClientOptions() |
com.mongodb.DB.getPreviousError()
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
com.mongodb.MapReduceOutput.getRaw()
It is not recommended to access the raw document returned by the server as the format can change between releases. This
has been replaced with a series of specific getters for the values on the result (getCollectionName, getDatabaseName, getDuration,
getEmitCount, getOutputCount, getInputCount). The method
results() will continue to return an Iterable<DBObjects> ,
that should be used to obtain the results of the map-reduce. This method will be removed in 3.0. |
com.mongodb.AggregationOutput.getServerUsed()
there is no replacement for this method
|
com.mongodb.DBCursor.getSizes()
there is no replacement for this method
|
org.bson.types.ObjectId.getTime()
Please use
ObjectId.getDate() ()} instead. |
org.bson.types.ObjectId.getTimeSecond()
Please use
ObjectId.getTimestamp() ()} instead. |
org.bson.EmptyBSONCallback.gotBinaryArray(String, byte[]) |
org.bson.BSONCallback.gotBinaryArray(String, byte[]) |
org.bson.BasicBSONCallback.gotBinaryArray(String, byte[]) |
com.mongodb.DBCollection.group(DBObject)
use
DBCollection.group(com.mongodb.GroupCommand) instead. This method will be removed in 3.0 |
org.bson.BasicBSONEncoder.handleSpecialObjects(String, BSONObject)
Override
BasicBSONEncoder.putSpecial(String, Object) if you need to you need to handle custom types. |
org.bson.io.OutputBuffer.hex()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DB.isAuthenticated()
Please use
MongoClient.MongoClient(java.util.List, java.util.List) to create a client, which
will authenticate all connections to server |
com.mongodb.MongoOptions.isAutoConnectRetry()
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.MongoClientOptions.isAutoConnectRetry()
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
org.bson.LazyBSONObject.isElementEmpty(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.WriteResult.isLazy()
Call
WriteResult.getLastConcern().isAcknowledged() instead |
org.bson.types.ObjectId.isNew()
'new' flag breaks the immutability of the
ObjectId class
and will be dropped in 3.x versions of the driver |
com.mongodb.DBCollection.mapReduce(DBObject)
Use
DBCollection.mapReduce(MapReduceCommand) instead |
org.bson.types.ObjectId.massageToObjectId(Object)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.MongoClientOptions.Builder.maxAutoConnectRetryTime(long)
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
org.bson.io.OutputBuffer.md5()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.types.ObjectId.notNew()
'new' flag breaks the immutability of the
ObjectId class
and will be dropped in 3.x versions of the driver |
com.mongodb.DBCursor.numGetMores()
there is no replacement for this method
|
org.bson.io.BasicOutputBuffer.pipe(DataOutput)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DefaultDBEncoder.putDBPointer(String, String, ObjectId)
Please see
DBPointer .
You can override DefaultDBEncoder.putDBRef(String, DBRefBase) if you need
a specific behaviour while decoding database references. |
com.mongodb.WriteConcern.raiseNetworkErrors()
There is no replacement for this method.
|
com.mongodb.DB.removeUser(String)
Use
DB.command to call the dropUser command |
com.mongodb.DB.resetError()
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
|
com.mongodb.DBCollection.resetIndexCache()
This will be removed in 3.0
|
org.bson.io.PoolOutputBuffer.seekEnd()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.OutputBuffer.seekEnd()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.BasicOutputBuffer.seekEnd()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.PoolOutputBuffer.seekStart()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.OutputBuffer.seekStart()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.BasicOutputBuffer.seekStart()
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.MongoOptions.setAutoConnectRetry(boolean)
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
com.mongodb.MongoOptions.setMaxAutoConnectRetryTime(long)
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
|
org.bson.io.PoolOutputBuffer.setPosition(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.OutputBuffer.setPosition(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.BasicOutputBuffer.setPosition(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.DB.setReadOnly(Boolean)
Avoid making database read-only via this method.
Connect with a user credentials that has a read-only access to a server instead.
|
org.bson.LazyBSONCallback.setRootObject(Object)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.WriteConcern.setWObject(Object)
construct a new instance instead. This method will be removed in a future major release, as instances of this class
should really be immutable.
|
org.bson.LazyBSONObject.sizeCString(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
com.mongodb.Mongo.slaveOk()
Replaced with
ReadPreference.secondaryPreferred() |
com.mongodb.DBCursor.slaveOk()
Replaced with
ReadPreference.secondaryPreferred() |
com.mongodb.DBCollection.slaveOk()
Replaced with
ReadPreference.secondaryPreferred() |
com.mongodb.DB.slaveOk()
Replaced with
ReadPreference.secondaryPreferred() |
org.bson.types.ObjectId.toStringBabble()
'babble' format is deprecated. Please use
ObjectId.toHexString() instead. |
org.bson.types.ObjectId.toStringMongod()
Please use
ObjectId.toHexString() instead. |
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) |
org.bson.BasicBSONEncoder.writeCString(String)
Replaced by
getOutputBuffer().writeCString(String) . |
org.bson.BasicBSONEncoder.writeInt(int)
Replaced by
getOutputBuffer().writeInt(int) . |
org.bson.io.OutputBuffer.writeInt(int, int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.io.OutputBuffer.writeIntBE(int)
This method is NOT a part of public API and will be dropped in 3.x versions.
|
org.bson.BasicBSONEncoder.writeLong(long)
Replaced by
getOutputBuffer().writeLong(long) . |