org.axonframework.eventsourcing.conflictresolvers
Class AcceptAllConflictResolver
java.lang.Object
org.axonframework.eventsourcing.conflictresolvers.AcceptAllConflictResolver
- All Implemented Interfaces:
- ConflictResolver
public class AcceptAllConflictResolver
- extends Object
- implements ConflictResolver
Implementation of the conflict resolver that will accept all changes made to an aggregate, even if the aggregate
contains changes that were not expected by the command handler.
- Since:
- 0.6
- Author:
- Allard Buijze
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AcceptAllConflictResolver
public AcceptAllConflictResolver()
resolveConflicts
public void resolveConflicts(List<DomainEventMessage> appliedChanges,
List<DomainEventMessage> committedChanges)
- Checks the given list of
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 changes
- Specified by:
resolveConflicts
in interface ConflictResolver
- Parameters:
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
handler
Copyright © 2010-2016. All Rights Reserved.