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