Interface ConflictDescription
- All Known Implementing Classes:
DefaultConflictDescription
public interface ConflictDescription
Descries a conflict between expected and actual version of an aggregate.
- Since:
- 3.2
- Author:
- Allard Buijze
-
Method Summary
Modifier and TypeMethodDescriptionlongThe actual version of the loaded aggregateThe identifier of the conflicting aggregate, as a String.longThe expected version, as indicated when loading the aggregateThe list of events that have been registered with this aggregate since the expected version.
-
Method Details
-
aggregateIdentifier
String aggregateIdentifier()The identifier of the conflicting aggregate, as a String.- Returns:
- the identifier of the conflicting aggregate
-
expectedVersion
long expectedVersion()The expected version, as indicated when loading the aggregate- Returns:
- the expected version
-
actualVersion
long actualVersion()The actual version of the loaded aggregate- Returns:
- the actual version of the aggregate
-
unexpectedEvents
List<DomainEventMessage<?>> unexpectedEvents()The list of events that have been registered with this aggregate since the expected version.- Returns:
- the events that were registered since the expected version of the aggregate
-