Deprecated API
Contents
-
Deprecated Packages Package Description com.mongodb.async com.mongodb.binding com.mongodb.operation
-
Deprecated Enums 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.com.mongodb.operation.OrderBy
-
Deprecated Exceptions Exceptions Description com.mongodb.util.JSONParseException there is no replacement for this class
-
Deprecated Fields Field Description com.mongodb.WriteConcern.FSYNC_SAFE PreferWriteConcern.JOURNALED
com.mongodb.WriteConcern.FSYNCED PreferWriteConcern.JOURNALED
com.mongodb.WriteConcern.JOURNAL_SAFE PreferWriteConcern.JOURNALED
com.mongodb.gridfs.GridFS.MAX_CHUNKSIZE You can calculate max chunkSize with a similar formulaMongo.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 byMongoCredential.SCRAM_SHA_1_MECHANISM
in MongoDB 3.0, and is now deprecatedcom.mongodb.WriteConcern.NORMAL PreferWriteConcern.UNACKNOWLEDGED
com.mongodb.WriteConcern.REPLICA_ACKNOWLEDGED Prefer WriteConcern#W2com.mongodb.WriteConcern.REPLICAS_SAFE PreferWriteConcern.W2
com.mongodb.WriteConcern.SAFE PreferWriteConcern.ACKNOWLEDGED
-
Deprecated Enum Constants Enum Constant Description com.mongodb.AuthenticationMechanism.MONGODB_CR This mechanism was replaced byAuthenticationMechanism.SCRAM_SHA_1
in MongoDB 3.0, and is now deprecatedorg.bson.json.JsonMode.STRICT The format generated with this mode is no longer considered standard for MongoDB tools. This value is not currently scheduled for removal.