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 Detail

      • resolveConflict

        DocumentT resolveConflict​(BsonValue documentId,
                                  ChangeEvent<DocumentT> localEvent,
                                  ChangeEvent<DocumentT> remoteEvent)
        Returns a resolution to the conflict between the given local and remote ChangeEvents.
        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 ChangeEvents.