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

org.enodeframework.domain.IRepository Maven / Gradle / Ivy

There is a newer version: 1.1.10
Show newest version
package org.enodeframework.domain;

import java.util.concurrent.CompletableFuture;

public interface IRepository {
    /**
     * Get an aggregate from memory cache, if not exist, get it from event store.
     */
     CompletableFuture getAsync(Class aggregateRootType, Object aggregateRootId);

    /**
     * Get an aggregate from memory cache, if not exist, get it from event store.
     */
    CompletableFuture getAsync(Object aggregateRootId);

    /**
     * Refresh memory cache with given aggregate.
     */
     void refreshAggregate(T aggregateRoot);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy