Companion

object Companion

Functions

Link copied to clipboard
fun of(name: String): ConflictResolutionType

Properties

Link copied to clipboard
@SinceCouchbase(value = "7.1")
val CUSTOM: ConflictResolutionType

In Couchbase Server 7.1, this feature is only available in "developer-preview" mode. See the UI XDCR settings for the custom conflict resolution properties.

Link copied to clipboard
val SEQUENCE_NUMBER: ConflictResolutionType

Conflicts can be resolved by referring to documents' sequence numbers. Sequence numbers are maintained per document, and are incremented on every document-update. The sequence numbers of source and target documents are compared; and the document with the higher sequence number prevails.

Link copied to clipboard
val TIMESTAMP: ConflictResolutionType

Timestamp-based conflict resolution (often referred to as Last Write Wins, or LWW) uses the document timestamp (stored in the CAS) to resolve conflicts. The timestamps associated with the most recent updates of source and target documents are compared. The document whose update has the more recent timestamp prevails.