public class AcceptAllConflictResolver extends Object implements ConflictResolver
Constructor and Description |
---|
AcceptAllConflictResolver() |
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. |
public 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.
This implementation does nothing, hence accepting all unseen changesresolveConflicts
in interface ConflictResolver
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
handlerCopyright © 2010-2014. All Rights Reserved.