Skip to content

MongoDB request DSLopensavvy.ktmongo.dsl.optionsWriteConcern

WriteConcern

class WriteConcern(val acknowledgment: WriteAcknowledgment? = null, val writeToJournal: Boolean? = null, val writeTimeout: ? = null)

The level of acknowledgment requested from a write operation.

See WithWriteConcern.writeConcern.

Constructors

WriteConcern

constructor(acknowledgment: WriteAcknowledgment? = null, writeToJournal: Boolean? = null, writeTimeout: ? = null)

Types

Companion

object Companion

Properties

acknowledgment

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