Modifier and Type | Method and Description |
---|---|
ConflictResolutionPolicy |
CosmosContainerProperties.conflictResolutionPolicy()
Gets the conflictResolutionPolicy that is used for resolving conflicting writes
on documents in different regions, in a collection in the Azure Cosmos DB service.
|
static ConflictResolutionPolicy |
ConflictResolutionPolicy.createCustomPolicy()
Creates a CUSTOM
ConflictResolutionPolicy without any StoredProcedure . |
static ConflictResolutionPolicy |
ConflictResolutionPolicy.createCustomPolicy(String conflictResolutionSprocName)
Creates a CUSTOM
ConflictResolutionPolicy which uses the specified stored procedure
to perform conflict resolution
This stored procedure may be created after the DocumentCollection is created and can be changed as required. |
static ConflictResolutionPolicy |
ConflictResolutionPolicy.createLastWriterWinsPolicy()
Creates a LAST_WRITER_WINS
ConflictResolutionPolicy with "/_ts" as the resolution path. |
static ConflictResolutionPolicy |
ConflictResolutionPolicy.createLastWriterWinsPolicy(String conflictResolutionPath)
Creates a LAST_WRITER_WINS
ConflictResolutionPolicy with path as the resolution path. |
Modifier and Type | Method and Description |
---|---|
CosmosContainerProperties |
CosmosContainerProperties.conflictResolutionPolicy(ConflictResolutionPolicy value)
Sets the conflictResolutionPolicy that is used for resolving conflicting writes
on documents in different regions, in a collection in the Azure Cosmos DB service.
|
Copyright © 2019. All rights reserved.