MongoDB request DSL • opensavvy.ktmongo.dsl.options • WriteConcern
WriteConcern¶
class WriteConcern(val acknowledgment: WriteAcknowledgment? = null, val writeToJournal: Boolean? = null, val writeTimeout: ERROR CLASS: Symbol not found for Duration?? = null)
The level of acknowledgment requested from a write operation.
Constructors¶
WriteConcern¶
constructor(acknowledgment: WriteAcknowledgment? = null, writeToJournal: Boolean? = null, writeTimeout: ERROR CLASS: Symbol not found for Duration?? = null)
Types¶
Companion¶
object Companion
Properties¶
acknowledgment¶
Describes how many nodes must acknowledge the write operation.
writeTimeout¶
val writeTimeout: ERROR CLASS: Symbol not found for Duration??
Specifies a time limit for a write operation to propagate to enough members to achieve acknowledgment and writeToJournal.
writeToJournal¶
val writeToJournal: Boolean?
Specifies whether the write operation must acknowledge being written to the journal.
Functions¶
copy¶
fun copy(acknowledgment: WriteAcknowledgment? = null, writeToJournal: Boolean? = null, writeTimeout: ERROR CLASS: Symbol not found for Duration?? = null): WriteConcern