Deprecated API
Contents
-
Deprecated Packages Package Description com.mongodb.async com.mongodb.binding com.mongodb.async.client com.mongodb.async.client.gridfs com.mongodb.async.client.gridfs.helpers com.mongodb.operation
-
Deprecated Interfaces Interface Description com.mongodb.async.client.AggregateIterable Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.AsyncBatchCursor Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.connection.AsyncConnection com.mongodb.binding.AsyncConnectionSource com.mongodb.async.client.gridfs.AsyncInputStream Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.operation.AsyncOperationExecutor there is no replacement for this interfacecom.mongodb.async.client.gridfs.AsyncOutputStream Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.binding.AsyncReadBinding com.mongodb.operation.AsyncReadOperation com.mongodb.binding.AsyncReadWriteBinding com.mongodb.binding.AsyncWriteBinding com.mongodb.operation.AsyncWriteOperation com.mongodb.operation.BatchCursor com.mongodb.async.client.ChangeStreamIterable Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.ClientSession Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.connection.Cluster com.mongodb.connection.ClusterFactory com.mongodb.connection.Connection com.mongodb.event.ConnectionListener - No longer usedcom.mongodb.binding.ConnectionSource com.mongodb.async.client.DistinctIterable Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.FindIterable Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.gridfs.GridFSBucket Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.gridfs.GridFSDownloadStream Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.gridfs.GridFSFindIterable Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.gridfs.GridFSUploadStream Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.ListCollectionsIterable Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.ListDatabasesIterable Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.ListIndexesIterable Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.operation.MapReduceAsyncBatchCursor com.mongodb.operation.MapReduceBatchCursor com.mongodb.async.client.MapReduceIterable Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.management.MBeanServer com.mongodb.async.client.MongoClient Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.MongoCollection Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.MongoDatabase Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.MongoIterable Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.util.ObjectSerializer there is no replacement for this interfacecom.mongodb.async.client.Observable Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.Observer Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.operation.OperationExecutor there is no replacement for this interfacecom.mongodb.binding.ReadBinding com.mongodb.operation.ReadOperation com.mongodb.binding.ReadWriteBinding com.mongodb.binding.ReferenceCounted com.mongodb.connection.Server com.mongodb.async.SingleResultCallback Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.async.client.Subscription Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)com.mongodb.binding.WriteBinding com.mongodb.operation.WriteOperation
-
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.