Interface and Description |
---|
com.mongodb.event.ConnectionListener
- No longer used
|
com.mongodb.operation.OperationExecutor
there is no replacement for this interface
|
Class and Description |
---|
com.mongodb.AggregationOutput
Replace with use of aggregate methods in
DBCollection that return instances of Cursor . |
com.mongodb.event.ClusterEventMulticaster
register multiple cluster listeners instead
|
com.mongodb.event.CommandEventMulticaster
register multiple command listeners instead
|
com.mongodb.event.CommandListenerMulticaster
register multiple command listeners in the settings
|
com.mongodb.event.ConnectionMessageReceivedEvent
- No longer used
|
com.mongodb.event.ConnectionMessagesSentEvent
- No longer used
|
com.mongodb.event.ConnectionPoolEventMulticaster
register multiple command listeners instead
|
com.mongodb.DBAddress
This class is no longer needed, as the driver does not rely on it for anything anymore. Use
ServerAddress instead. |
com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions
use
GridFSDownloadOptions instead. |
com.mongodb.util.JSON
This class has been superseded by to toJson and parse methods on BasicDBObject
|
com.mongodb.util.JSONCallback
This class has been superseded by to toJson and parse methods on BasicDBObject
|
com.mongodb.util.JSONSerializers
This class has been superseded by to toJson and parse methods on BasicDBObject
|
com.mongodb.MongoOptions
Please use
MongoClientOptions instead. |
com.mongodb.MongoURI
Replaced by
MongoClientURI |
com.mongodb.client.model.ParallelCollectionScanOptions
this is an unused class and there should be no reason to use it
|
com.mongodb.selector.PrimaryServerSelector
Use either
ReadPreferenceServerSelector or WritableServerSelector , depending on your requirements |
com.mongodb.event.ServerEventMulticaster
register multiple server listeners instead
|
com.mongodb.event.ServerMonitorEventMulticaster
register multiple server monitor listeners instead
|
com.mongodb.WriteConcern.Majority |
Enum and Description |
---|
com.mongodb.AggregationOptions.OutputMode
There is no replacement for this. Applications can assume that the driver will use a cursor for server versions
that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate
command.
|
Field and Description |
---|
com.mongodb.WriteConcern.FSYNC_SAFE
Prefer
WriteConcern.JOURNALED |
com.mongodb.WriteConcern.FSYNCED
Prefer
WriteConcern.JOURNALED |
com.mongodb.WriteConcern.JOURNAL_SAFE
Prefer
WriteConcern.JOURNALED |
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.WriteConcern.NORMAL
Prefer
WriteConcern.UNACKNOWLEDGED |
com.mongodb.WriteConcern.REPLICA_ACKNOWLEDGED
Prefer WriteConcern#W2
|
com.mongodb.WriteConcern.REPLICAS_SAFE
Prefer
WriteConcern.W2 |
com.mongodb.WriteConcern.SAFE
Prefer
WriteConcern.ACKNOWLEDGED |
Enum Constant and Description |
---|
org.bson.json.JsonMode.STRICT
The format generated with this mode is no longer considered standard for MongoDB tools.
|