andreschaffer/event-sourcing-cqrs-examples

View on GitHub
src/main/java/bankservice/domain/model/EventStore.java

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package bankservice.domain.model;

import java.util.List;
import java.util.UUID;

public interface EventStore {

  void store(UUID aggregateId, List<Event> newEvents, int baseVersion)
      throws OptimisticLockingException;

  List<Event> load(UUID aggregateId);

}