Skip to content

MongoDB request DSLopensavvy.ktmongo.dsl.optionsWriteAcknowledgment

WriteAcknowledgment

sealed class WriteAcknowledgment

Describes how many nodes must acknowledge this write operation.

For more information, see WriteConcern.

External resources

Inheritors

Types

Majority

Requests acknowledgment that the calculated majority of data-bearing voting members have durably written the change to their local oplog. The members then asynchronously apply changes as they read them from their local oplogs.

Nodes

data class Nodes(val count: Int) : WriteAcknowledgment

Requests acknowledgment that the write operation has propagated to the specified number of instances.

Tagged

data class Tagged(val tag: String) : WriteAcknowledgment

Requests acknowledgment from members tagged with tag.