All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.com.sofka.infraestructure.repository.EventStoreRepository Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package co.com.sofka.infraestructure.repository;

import co.com.sofka.domain.generic.DomainEvent;
import co.com.sofka.infraestructure.store.StoredEvent;

import java.util.List;


/**
 * The interface Event store repository.
 */
public interface EventStoreRepository {
    /**
     * Gets events by.
     *
     * @param aggregateRootId the aggregate root id
     * @param aggregateName   the aggregate name
     * @return the events by
     */
    List getEventsBy(String aggregateName, String aggregateRootId);

    /**
     * Save event.
     *
     * @param aggregateName   the aggregate name
     * @param aggregateRootId the aggregate root id
     * @param storedEvent     the stored event
     */
    void saveEvent(String aggregateName, String aggregateRootId, StoredEvent storedEvent);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy