withWriteConcern

fun withWriteConcern(newWriteConcern: WriteConcern): MongoCollection<T>

Create a new collection instance with a different write concern.

Return

a new MongoCollection instance with the different writeConcern

Parameters

newWriteConcern

the new com.mongodb.WriteConcern for the collection