Class and Description |
---|
com.mongodb.event.CommandListenerMulticaster
Prefer
CommandEventMulticaster |
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.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.WriteConcern.Majority |
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 |