public class OQuorumDistributedConflictResolver extends OAbstractDistributedConflictResolver
ODistributedConflictResolver.OConflictResult
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
configuration
NOT_FOUND
Constructor and Description |
---|
OQuorumDistributedConflictResolver() |
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, getBestResult
public static final String NAME
public ODistributedConflictResolver.OConflictResult onConflict(String databaseName, String clusterName, ORecordId rid, ODistributedServerManager dManager, Map<Object,List<String>> candidates)
ODistributedConflictResolver
rid
- 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()
ODistributedConflictResolver
Copyright © 2009–2020 OrientDB. All rights reserved.