public interface ConflictResolver
ConflictingModificationException (or subtype) is thrown.| Modifier and Type | Method and Description |
|---|---|
void |
resolveConflicts(List<DomainEventMessage> appliedChanges,
List<DomainEventMessage> committedChanges)
Checks the given list of
appliedChanges and committedChanges for any conflicting
changes. |
void resolveConflicts(List<DomainEventMessage> appliedChanges, List<DomainEventMessage> committedChanges)
appliedChanges and committedChanges for any conflicting
changes. If any such conflicts are detected, an instance of
ConflictingModificationException (or subtype) is thrown. If no conflicts
are detected, nothing happens.appliedChanges - The list of the changes applied to the aggregatecommittedChanges - The list of events that have been previously applied, but were unexpected by the command
handlerConflictingModificationException - if any conflicting changes are detectedCopyright © 2010-2014. All Rights Reserved.