Class: Synapse::EventSourcing::ConflictResolver Abstract
- Inherits:
-
Object
- Object
- Synapse::EventSourcing::ConflictResolver
- Defined in:
- lib/synapse/event_sourcing/conflict_resolver.rb
Overview
This class is abstract.
Represents a mechanism that is capable of detecting conflicts between applied changes to the aggregate and unseen changes made to the aggregate.
Direct Known Subclasses
Instance Method Summary collapse
-
#resolve_conflicts(applied_changes, committed_changes) ⇒ undefined
abstract
Checks the list of changes applied to the aggregate and compares it to the list of events already applied to the aggregate.
Instance Method Details
#resolve_conflicts(applied_changes, committed_changes) ⇒ undefined
This method is abstract.
Checks the list of changes applied to the aggregate and compares it to the list of events already applied to the aggregate. If a conflict is detected, this should throw an exception. Otherwise, the changes will be applied.
17 18 19 |
# File 'lib/synapse/event_sourcing/conflict_resolver.rb', line 17 def resolve_conflicts(applied_changes, committed_changes) raise NotImplementedError end |