the underlying java MongoCollection
Aggregates documents according to the specified aggregation pipeline.
Aggregates documents according to the specified aggregation pipeline.
the client session with which to associate this operation
the aggregate pipeline
a Observable containing the result of the aggregation operation Aggregation
2.2
Requires MongoDB 3.6 or greater
Aggregates documents according to the specified aggregation pipeline.
Aggregates documents according to the specified aggregation pipeline.
the aggregate pipeline
a Observable containing the result of the aggregation operation Aggregation
Executes a mix of inserts, updates, replaces, and deletes.
Executes a mix of inserts, updates, replaces, and deletes.
the client session with which to associate this operation
the writes to execute
the options to apply to the bulk write operation
a Observable with a single element the BulkWriteResult
2.2
Requires MongoDB 3.6 or greater
Executes a mix of inserts, updates, replaces, and deletes.
Executes a mix of inserts, updates, replaces, and deletes.
the client session with which to associate this operation
the writes to execute
a Observable with a single element the BulkWriteResult
2.2
Requires MongoDB 3.6 or greater
Executes a mix of inserts, updates, replaces, and deletes.
Executes a mix of inserts, updates, replaces, and deletes.
the writes to execute
the options to apply to the bulk write operation
a Observable with a single element the BulkWriteResult
Executes a mix of inserts, updates, replaces, and deletes.
Executes a mix of inserts, updates, replaces, and deletes.
the writes to execute
a Observable with a single element the BulkWriteResult
Get the codec registry for the MongoDatabase.
Get the codec registry for the MongoDatabase.
the { @link org.bson.codecs.configuration.CodecRegistry}
Counts the number of documents in the collection according to the given options.
Counts the number of documents in the collection according to the given options.
the client session with which to associate this operation
the query filter
the options describing the count
a Observable with a single element indicating the number of documents
2.2
Requires MongoDB 3.6 or greater
Counts the number of documents in the collection according to the given options.
Counts the number of documents in the collection according to the given options.
the client session with which to associate this operation
the query filter
a Observable with a single element indicating the number of documents
2.2
Requires MongoDB 3.6 or greater
Counts the number of documents in the collection.
Counts the number of documents in the collection.
the client session with which to associate this operation
a Observable with a single element indicating the number of documents
2.2
Requires MongoDB 3.6 or greater
Counts the number of documents in the collection according to the given options.
Counts the number of documents in the collection according to the given options.
the query filter
the options describing the count
a Observable with a single element indicating the number of documents
Counts the number of documents in the collection according to the given options.
Counts the number of documents in the collection according to the given options.
the query filter
a Observable with a single element indicating the number of documents
Counts the number of documents in the collection.
Counts the number of documents in the collection.
a Observable with a single element indicating the number of documents
the client session with which to associate this operation
an object describing the index key(s), which may not be null. This can be of any type for which a Codec
is
registered
the options for the index
a Observable with a single element indicating when the operation has completed
2.2
Requires MongoDB 3.6 or greater
the client session with which to associate this operation
an object describing the index key(s), which may not be null. This can be of any type for which a Codec
is
registered
a Observable with a single element indicating when the operation has completed
2.2
Requires MongoDB 3.6 or greater
an object describing the index key(s), which may not be null. This can be of any type for which a Codec
is
registered
the options for the index
a Observable with a single element indicating when the operation has completed
an object describing the index key(s), which may not be null. This can be of any type for which a Codec
is
registered
a Observable with a single element indicating when the operation has completed
Create multiple indexes.
Create multiple indexes.
the client session with which to associate this operation
the list of indexes to create
options to use when creating indexes
a Observable with the names of the indexes
2.2
Requires MongoDB 3.6 or greater
Create multiple indexes.
Create multiple indexes.
the client session with which to associate this operation
the list of indexes to create
a Observable with the names of the indexes
2.2
Requires MongoDB 3.6 or greater
Create multiple indexes.
Create multiple indexes.
the list of indexes to create
options to use when creating indexes
a Observable with the names of the indexes
2.2
Create multiple indexes.
Create multiple indexes.
the list of indexes to create
a Observable with the names of the indexes
Removes all documents from the collection that match the given query filter.
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
the client session with which to associate this operation
the query filter to apply the the delete operation
the options to apply to the delete operation
a Observable with a single element the DeleteResult or with an com.mongodb.MongoException
2.2
Requires MongoDB 3.6 or greater
Removes all documents from the collection that match the given query filter.
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
the client session with which to associate this operation
the query filter to apply the the delete operation
a Observable with a single element the DeleteResult or with an com.mongodb.MongoException
2.2
Requires MongoDB 3.6 or greater
Removes all documents from the collection that match the given query filter.
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
the query filter to apply the the delete operation
the options to apply to the delete operation
a Observable with a single element the DeleteResult or with an com.mongodb.MongoException
1.2
Removes all documents from the collection that match the given query filter.
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
the query filter to apply the the delete operation
a Observable with a single element the DeleteResult or with an com.mongodb.MongoException
Removes at most one document from the collection that matches the given filter.
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.
the client session with which to associate this operation
the query filter to apply the the delete operation
the options to apply to the delete operation
a Observable with a single element the DeleteResult or with an com.mongodb.MongoException
2.2
Requires MongoDB 3.6 or greater
Removes at most one document from the collection that matches the given filter.
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.
the client session with which to associate this operation
the query filter to apply the the delete operation
a Observable with a single element the DeleteResult or with an com.mongodb.MongoException
2.2
Requires MongoDB 3.6 or greater
Removes at most one document from the collection that matches the given filter.
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.
the query filter to apply the the delete operation
the options to apply to the delete operation
a Observable with a single element the DeleteResult or with an com.mongodb.MongoException
1.2
Removes at most one document from the collection that matches the given filter.
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.
the query filter to apply the the delete operation
a Observable with a single element the DeleteResult or with an com.mongodb.MongoException
Gets the distinct values of the specified field name.
Gets the distinct values of the specified field name.
the target type of the observable.
the client session with which to associate this operation
the field name
the query filter
a Observable emitting the sequence of distinct values
2.2
Requires MongoDB 3.6 or greater
Gets the distinct values of the specified field name.
Gets the distinct values of the specified field name.
the target type of the observable.
the client session with which to associate this operation
the field name
a Observable emitting the sequence of distinct values
2.2
Requires MongoDB 3.6 or greater
Gets the distinct values of the specified field name.
Gets the distinct values of the specified field name.
the target type of the observable.
the field name
the query filter
a Observable emitting the sequence of distinct values
Gets the distinct values of the specified field name.
Gets the distinct values of the specified field name.
the target type of the observable.
the field name
a Observable emitting the sequence of distinct values
Get the default class to cast any documents returned from the database into.
Get the default class to cast any documents returned from the database into.
the default class to cast any documents into
Drops this collection from the Database.
Drops this collection from the Database.
the client session with which to associate this operation
a Observable with a single element indicating when the operation has completed Drop Collection
2.2
Requires MongoDB 3.6 or greater
Drops this collection from the Database.
Drops this collection from the Database.
a Observable with a single element indicating when the operation has completed Drop Collection
Drops the index given the keys used to create it.
Drops the index given the keys used to create it.
the client session with which to associate this operation
the keys of the index to remove
options to use when dropping indexes
a Observable with a single element indicating when the operation has completed
2.2
Requires MongoDB 3.6 or greater
Drops the index given the keys used to create it.
Drops the index given the keys used to create it.
the client session with which to associate this operation
the keys of the index to remove
a Observable with a single element indicating when the operation has completed
2.2
Requires MongoDB 3.6 or greater
Drops the given index.
Drops the given index.
the client session with which to associate this operation
the name of the index to remove
options to use when dropping indexes
a Observable with a single element indicating when the operation has completed
2.2
Requires MongoDB 3.6 or greater
Drops the given index.
Drops the given index.
the client session with which to associate this operation
the name of the index to remove
a Observable with a single element indicating when the operation has completed
2.2
Requires MongoDB 3.6 or greater
Drops the index given the keys used to create it.
Drops the index given the keys used to create it.
the keys of the index to remove
options to use when dropping indexes
a Observable with a single element indicating when the operation has completed
2.2
Drops the index given the keys used to create it.
Drops the index given the keys used to create it.
the keys of the index to remove
a Observable with a single element indicating when the operation has completed
Drops the given index.
Drops the given index.
the name of the index to remove
options to use when dropping indexes
a Observable with a single element indicating when the operation has completed
2.2
Drops the given index.
Drops the given index.
the name of the index to remove
a Observable with a single element indicating when the operation has completed
Drop all the indexes on this collection, except for the default on _id.
Drop all the indexes on this collection, except for the default on _id.
the client session with which to associate this operation
options to use when dropping indexes
a Observable with a single element indicating when the operation has completed
2.2
Requires MongoDB 3.6 or greater
Drop all the indexes on this collection, except for the default on _id.
Drop all the indexes on this collection, except for the default on _id.
the client session with which to associate this operation
a Observable with a single element indicating when the operation has completed
2.2
Requires MongoDB 3.6 or greater
Drop all the indexes on this collection, except for the default on _id.
Drop all the indexes on this collection, except for the default on _id.
options to use when dropping indexes
a Observable with a single element indicating when the operation has completed
2.2
Drop all the indexes on this collection, except for the default on _id.
Drop all the indexes on this collection, except for the default on _id.
a Observable with a single element indicating when the operation has completed
Finds all documents in the collection.
Finds all documents in the collection.
the target document type of the observable.
the client session with which to associate this operation
the query filter
the find Observable
2.2
Requires MongoDB 3.6 or greater
Finds all documents in the collection.
Finds all documents in the collection.
the target document type of the observable.
the client session with which to associate this operation
the find Observable
2.2
Requires MongoDB 3.6 or greater
Finds all documents in the collection.
Finds all documents in the collection.
the target document type of the observable.
the query filter
the find Observable
Finds all documents in the collection.
Finds all documents in the collection.
the target document type of the observable.
the find Observable
Atomically find a document and remove it.
Atomically find a document and remove it.
the client session with which to associate this operation
the query filter to find the document with
the options to apply to the operation
a Observable with a single element the document that was removed. If no documents matched the query filter, then null will be returned
2.2
Requires MongoDB 3.6 or greater
Atomically find a document and remove it.
Atomically find a document and remove it.
the client session with which to associate this operation
the query filter to find the document with
a Observable with a single element the document that was removed. If no documents matched the query filter, then null will be returned
2.2
Requires MongoDB 3.6 or greater
Atomically find a document and remove it.
Atomically find a document and remove it.
the query filter to find the document with
the options to apply to the operation
a Observable with a single element the document that was removed. If no documents matched the query filter, then null will be returned
Atomically find a document and remove it.
Atomically find a document and remove it.
the query filter to find the document with
a Observable with a single element the document that was removed. If no documents matched the query filter, then null will be returned
Atomically find a document and replace it.
Atomically find a document and replace it.
the client session with which to associate this operation
the query filter to apply the the replace operation
the replacement document
the options to apply to the operation
a Observable with a single element the document that was replaced. Depending on the value of the returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no documents matched the
query filter, then null will be returned
2.2
Requires MongoDB 3.6 or greater
Atomically find a document and replace it.
Atomically find a document and replace it.
the client session with which to associate this operation
the query filter to apply the the replace operation
the replacement document
a Observable with a single element the document that was replaced. Depending on the value of the returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no documents matched the
query filter, then null will be returned
2.2
Requires MongoDB 3.6 or greater
Atomically find a document and replace it.
Atomically find a document and replace it.
the query filter to apply the the replace operation
the replacement document
the options to apply to the operation
a Observable with a single element the document that was replaced. Depending on the value of the returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no documents matched the
query filter, then null will be returned
Atomically find a document and replace it.
Atomically find a document and replace it.
the query filter to apply the the replace operation
the replacement document
a Observable with a single element the document that was replaced. Depending on the value of the returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no documents matched the
query filter, then null will be returned
Atomically find a document and update it.
Atomically find a document and update it.
the client session with which to associate this operation
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
the options to apply to the operation
a Observable with a single element the document that was updated. Depending on the value of the returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no documents matched the
query filter, then null will be returned
2.2
Requires MongoDB 3.6 or greater
Atomically find a document and update it.
Atomically find a document and update it.
the client session with which to associate this operation
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
a Observable with a single element the document that was updated. Depending on the value of the returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no documents matched the
query filter, then null will be returned
2.2
Requires MongoDB 3.6 or greater
Atomically find a document and update it.
Atomically find a document and update it.
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
the options to apply to the operation
a Observable with a single element the document that was updated. Depending on the value of the returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no documents matched the
query filter, then null will be returned
Atomically find a document and update it.
Atomically find a document and update it.
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
a Observable with a single element the document that was updated. Depending on the value of the returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no documents matched the
query filter, then null will be returned
Inserts a batch of documents.
Inserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API.
the client session with which to associate this operation
the documents to insert
the options to apply to the operation
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
2.2
Requires MongoDB 3.6 or greater
Inserts a batch of documents.
Inserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API.
the client session with which to associate this operation
the documents to insert
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
2.2
Requires MongoDB 3.6 or greater
Inserts a batch of documents.
Inserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API. However, when talking with a server < 2.6, using this method will be faster due to constraints in the bulk API related to error handling.
the documents to insert
the options to apply to the operation
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
Inserts a batch of documents.
Inserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API. However, when talking with a server < 2.6, using this method will be faster due to constraints in the bulk API related to error handling.
the documents to insert
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
Inserts the provided document.
Inserts the provided document. If the document is missing an identifier, the driver should generate one.
the client session with which to associate this operation
the document to insert
the options to apply to the operation
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
2.2
Requires MongoDB 3.6 or greater
Inserts the provided document.
Inserts the provided document. If the document is missing an identifier, the driver should generate one.
the client session with which to associate this operation
the document to insert
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
2.2
Requires MongoDB 3.6 or greater
Inserts the provided document.
Inserts the provided document. If the document is missing an identifier, the driver should generate one.
the document to insert
the options to apply to the operation
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
1.1
Inserts the provided document.
Inserts the provided document. If the document is missing an identifier, the driver should generate one.
the document to insert
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
Get all the indexes in this collection.
Get all the indexes in this collection.
the target document type of the observable.
the client session with which to associate this operation
the fluent list indexes interface
2.2
Requires MongoDB 3.6 or greater
Get all the indexes in this collection.
Get all the indexes in this collection.
the target document type of the observable.
the fluent list indexes interface
Aggregates documents according to the specified map-reduce function.
Aggregates documents according to the specified map-reduce function.
the target document type of the observable.
the client session with which to associate this operation
A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
A JavaScript function that "reduces" to a single object all the values associated with a particular key.
a Observable containing the result of the map-reduce operation map-reduce
2.2
Requires MongoDB 3.6 or greater
Aggregates documents according to the specified map-reduce function.
Aggregates documents according to the specified map-reduce function.
the target document type of the observable.
A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
A JavaScript function that "reduces" to a single object all the values associated with a particular key.
a Observable containing the result of the map-reduce operation map-reduce
Gets the namespace of this collection.
Gets the namespace of this collection.
the namespace
Get the read concern for the MongoDatabase.
Get the read preference for the MongoDatabase.
Get the read preference for the MongoDatabase.
the { @link com.mongodb.ReadPreference}
Rename the collection with oldCollectionName to the newCollectionName.
Rename the collection with oldCollectionName to the newCollectionName.
the client session with which to associate this operation
the name the collection will be renamed to
the options for renaming a collection
a Observable with a single element indicating when the operation has completed
2.2
Requires MongoDB 3.6 or greater
Rename the collection with oldCollectionName to the newCollectionName.
Rename the collection with oldCollectionName to the newCollectionName.
the client session with which to associate this operation
the name the collection will be renamed to
a Observable with a single element indicating when the operation has completed
2.2
Requires MongoDB 3.6 or greater
Rename the collection with oldCollectionName to the newCollectionName.
Rename the collection with oldCollectionName to the newCollectionName.
the name the collection will be renamed to
the options for renaming a collection
a Observable with a single element indicating when the operation has completed
Rename the collection with oldCollectionName to the newCollectionName.
Rename the collection with oldCollectionName to the newCollectionName.
the name the collection will be renamed to
a Observable with a single element indicating when the operation has completed
Replace a document in the collection according to the specified arguments.
Replace a document in the collection according to the specified arguments.
the client session with which to associate this operation
the query filter to apply the the replace operation
the replacement document
the options to apply to the replace operation
a Observable with a single element the UpdateResult
2.2
Requires MongoDB 3.6 or greater
Replace a document in the collection according to the specified arguments.
Replace a document in the collection according to the specified arguments.
the client session with which to associate this operation
the query filter to apply the the replace operation
the replacement document
a Observable with a single element the UpdateResult
2.2
Requires MongoDB 3.6 or greater
Replace a document in the collection according to the specified arguments.
Replace a document in the collection according to the specified arguments.
the query filter to apply the the replace operation
the replacement document
the options to apply to the replace operation
a Observable with a single element the UpdateResult
Replace a document in the collection according to the specified arguments.
Replace a document in the collection according to the specified arguments.
the query filter to apply the the replace operation
the replacement document
a Observable with a single element the UpdateResult
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
the client session with which to associate this operation
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
the options to apply to the update operation
a Observable with a single element the UpdateResult
2.2
Requires MongoDB 3.6 or greater
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
the client session with which to associate this operation
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
a Observable with a single element the UpdateResult
2.2
Requires MongoDB 3.6 or greater
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
the options to apply to the update operation
a Observable with a single element the UpdateResult
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
a Observable with a single element the UpdateResult
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
the client session with which to associate this operation
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
the options to apply to the update operation
a Observable with a single element the UpdateResult
2.2
Requires MongoDB 3.6 or greater
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
the client session with which to associate this operation
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
a Observable with a single element the UpdateResult
2.2
Requires MongoDB 3.6 or greater
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
the options to apply to the update operation
a Observable with a single element the UpdateResult
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
a document describing the query filter, which may not be null. This can be of any type for which a Codec
is
registered
a document describing the update, which may not be null. The update to apply must include only update operators. This
can be of any type for which a Codec
is registered
a Observable with a single element the UpdateResult
Creates a change stream for this collection.
Creates a change stream for this collection.
the target document type of the observable.
the client session with which to associate this operation
the aggregation pipeline to apply to the change stream
the change stream observable
2.2
Requires MongoDB 3.6 or greater
Creates a change stream for this collection.
Creates a change stream for this collection.
the target document type of the observable.
the client session with which to associate this operation
the change stream observable
2.2
Requires MongoDB 3.6 or greater
Creates a change stream for this collection.
Creates a change stream for this collection.
the target document type of the observable.
the aggregation pipeline to apply to the change stream
the change stream observable
2.2
Requires MongoDB 3.6 or greater
Creates a change stream for this collection.
Creates a change stream for this collection.
the target document type of the observable.
the change stream observable
2.2
Requires MongoDB 3.6 or greater
Create a new MongoCollection instance with a different codec registry.
Create a new MongoCollection instance with a different codec registry.
the new { @link org.bson.codecs.configuration.CodecRegistry} for the collection
a new MongoCollection instance with the different codec registry
Create a new MongoCollection instance with a different default class to cast any documents returned from the database into..
Create a new MongoCollection instance with a different default class to cast any documents returned from the database into..
The type that the new collection will encode documents from and decode documents to
a new MongoCollection instance with the different default class
Create a new MongoCollection instance with a different read concern.
Create a new MongoCollection instance with a different read concern.
the new ReadConcern for the collection
a new MongoCollection instance with the different ReadConcern
1.1
Create a new MongoCollection instance with a different read preference.
Create a new MongoCollection instance with a different read preference.
the new { @link com.mongodb.ReadPreference} for the collection
a new MongoCollection instance with the different readPreference
Create a new MongoCollection instance with a different write concern.
Create a new MongoCollection instance with a different write concern.
the new { @link com.mongodb.WriteConcern} for the collection
a new MongoCollection instance with the different writeConcern
Get the write concern for the MongoDatabase.
Get the write concern for the MongoDatabase.
the { @link com.mongodb.WriteConcern}
The MongoCollection representation.
The type that this collection will encode documents from and decode documents to.
the underlying java MongoCollection
1.0