Enum CacheConflictMode
Cache conflict resolver mode.
Each cache entry has data center ID. In case cache update is performed and either old or new cache entry has data center ID which differs from local data center ID defined by DataCenterId we consider such situation as conflict.
If both entries participating in conflict have the same data center ID (i.e. they both were replicated from the same remote data center), then GridGain can potentially resolve this conflict automatically based on entry metadata.
But in case old and new entries have different data center IDs (i.e. in active-active scenario when cache is updated in both data centers participating in data center replication, or when cache is updated from multiple remote data centers), then explicit conflict resolution is required.
This enumeration provides several different strategies for conflict resolution.
Namespace: GridGain.Core.DataCenterReplication
Assembly: GridGain.Core.dll
Syntax
public enum CacheConflictMode : int
Fields
| Name | Description |
|---|---|
| Always | GridGain will always delegate to conflict resolver. This applies to all possible cases, even if both old and new entries have local data center ID and therefore are not considered conflicting when cache is not data center replication receiver. |
| Auto | GridGain will automatically resolve conflicts when possible (i.e. when both old and new entries have the same data center ID). In all other situations, conflict resolution will be delegated to conflict resolver. In case conflict resolver is not configured, GridGain will overwrite old entry with a new one. |