Interface ConflictHandler<DocumentT>
-
- Type Parameters:
DocumentT
- the type of document involved in the conflict.
public interface ConflictHandler<DocumentT>
ConflictHandler describes how to resolve a conflict between a local and remote event.
-
-
Method Summary
Modifier and Type Method Description ConflictResolution
resolveConflict(BsonValue documentId, ChangeEvent<DocumentT> localEvent, CompactChangeEvent<DocumentT> remoteEvent)
Returns a resolution to the conflict between the given local and remoteChangeEvent
s.
-
-
-
Method Detail
-
resolveConflict
ConflictResolution resolveConflict(BsonValue documentId, ChangeEvent<DocumentT> localEvent, CompactChangeEvent<DocumentT> remoteEvent)
Returns a resolution to the conflict between the given local and remoteChangeEvent
s.- Parameters:
documentId
- the document _id that has the conflict.localEvent
- the conflicting local event.remoteEvent
- the conflicting remote event.- Returns:
- a resolution to the conflict between the given local and remote
ChangeEvent
s.
-
-