WriteConcern

class WriteConcern(val acknowledgment: WriteAcknowledgment? = null, val writeToJournal: Boolean? = null, val writeTimeout: <Error class: unknown class>? = null)(source)

The level of acknowledgment requested from a write operation.

See WithWriteConcern.writeConcern.

Constructors

Link copied to clipboard
constructor(acknowledgment: WriteAcknowledgment? = null, writeToJournal: Boolean? = null, writeTimeout: <Error class: unknown class>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Describes how many nodes must acknowledge the write operation.

Link copied to clipboard
val writeTimeout: <Error class: unknown class>? = null

Specifies a time limit for a write operation to propagate to enough members to achieve acknowledgment and writeToJournal.

Link copied to clipboard
val writeToJournal: Boolean? = null

Specifies whether the write operation must acknowledge being written to the journal.

Functions

Link copied to clipboard
fun copy(acknowledgment: WriteAcknowledgment? = null, writeToJournal: Boolean? = null, writeTimeout: <Error class: unknown class>? = null): WriteConcern