WriteConcern

class WriteConcern(val acknowledgment: WriteAcknowledgment? = null, val writeToJournal: Boolean? = null, val writeTimeout: ERROR CLASS: Symbol not found for Duration?? = 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: Symbol not found for Duration?? = 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: Symbol not found for Duration??

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

Link copied to clipboard

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: Symbol not found for Duration?? = null): WriteConcern