
public class OMajorityDistributedConflictResolver extends OAbstractDistributedConflictResolver
ODistributedConflictResolver.OConflictResult| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
configurationNOT_FOUND| Constructor and Description |
|---|
OMajorityDistributedConflictResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Name to register in the factory.
|
ODistributedConflictResolver.OConflictResult |
onConflict(String databaseName,
String clusterName,
ORecordId rid,
ODistributedServerManager dManager,
Map<Object,List<String>> candidates)
Called on distributed conflict.
|
compareRecords, configure, getBestResultpublic static final String NAME
public OMajorityDistributedConflictResolver()
public ODistributedConflictResolver.OConflictResult onConflict(String databaseName, String clusterName, ORecordId rid, ODistributedServerManager dManager, Map<Object,List<String>> candidates)
ODistributedConflictResolverrid - RecordID of the record in conflictdManager - Current distributed manager instancecandidates - All the values from the servers grouped by value. The key could also be an exception in case the
record was not found. @return The winning objectpublic String getName()
ODistributedConflictResolverCopyright © 2009–2025 OrientDB. All rights reserved.