ConflictResolutionMode Enum

  • java.lang.Object
    • java.lang.Enum<ConflictResolutionMode>
      • com.microsoft.azure.cosmosdb.ConflictResolutionMode

public enum ConflictResolutionMode

Fields

Custom

Custom conflict resolution mode

Setting the ConflictResolutionMode to "Custom" indicates that conflict resolution is custom handled by a user. The user could elect to register a user specified StoredProcedure for handling conflicting resources. Should the user not register a user specified StoredProcedure, conflicts will default to being made available as Conflict resources, which the user can inspect and manually resolve. See getConflictResolutionProcedure() for details on how to specify the stored procedure to run for conflict resolution.

Invalid

Invalid or unknown mode.

LastWriterWins

Last writer wins conflict resolution mode

Setting the ConflictResolutionMode to "LastWriterWins" indicates that conflict resolution should be done by inspecting a field in the conflicting documents and picking the document which has the higher value in that path. See getConflictResolutionPath() for details on how to specify the path to be checked for conflict resolution. Also note that Deletes win.

Applies to