Package com.couchbase.lite
Interface ConflictResolver
- Functional Interface:
 - This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
Custom conflict resolution strategies implement this interface.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConflictResolverThe default conflict resolution strategy. - 
Method Summary
 
- 
Field Details
- 
DEFAULT
The default conflict resolution strategy. Deletion always wins. A newer doc always beats an older one. Otherwise one of the two document is chosen randomly but deterministically. 
 - 
 - 
Method Details
- 
resolve
Callback: called when there are conflicting changes in the local and remote versions of a document during replication.- Parameters:
 conflict- Description of the conflicting documents.- Returns:
 - the resolved doc.
 
 
 -