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

org.enodeframework.domain.Repository.kt Maven / Gradle / Ivy

package org.enodeframework.domain

import java.util.concurrent.CompletableFuture

interface Repository {
    /**
     * Get an aggregate from memory cache, if not exist, get it from event store.
     */
    fun  getAsync(aggregateRootType: Class, aggregateRootId: String): CompletableFuture

    /**
     * Refresh memory cache with given aggregate.
     */
    fun  refreshAggregate(aggregateRoot: T)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy