MongoDB request DSL • opensavvy.ktmongo.dsl.options • WriteAcknowledgment
WriteAcknowledgment¶
sealed class WriteAcknowledgment
Describes how many nodes must acknowledge this write operation.
For more information, see WriteConcern
.
External resources¶
Inheritors¶
Types¶
Majority
¶
data object Majority : WriteAcknowledgment
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