Interface | Description |
---|---|
com.mongodb.operation.AsyncOperationExecutor |
there is no replacement for this interface
|
com.mongodb.event.ConnectionListener |
- No longer used
|
com.mongodb.operation.OperationExecutor |
there is no replacement for this interface
|
Enum | 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 | 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.MongoCredential.MONGODB_CR_MECHANISM |
This mechanism was replaced by
MongoCredential.SCRAM_SHA_1_MECHANISM in MongoDB 3.0, and is now deprecated |
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 | Description |
---|---|
com.mongodb.AuthenticationMechanism.MONGODB_CR |
This mechanism was replaced by
AuthenticationMechanism.SCRAM_SHA_1 in MongoDB 3.0, and is now deprecated |
org.bson.json.JsonMode.STRICT |
The format generated with this mode is no longer considered standard for MongoDB tools.
|