org.enodeframework.domain.AggregateSnapshotter.kt Maven / Gradle / Ivy
package org.enodeframework.domain
import java.util.concurrent.CompletableFuture
/**
* An interface which can restore aggregate from snapshot storage.
*/
interface AggregateSnapshotter {
/**
* Restore the aggregate from snapshot storage.
*/
fun restoreFromSnapshotAsync(
aggregateRootType: Class,
aggregateRootId: String
): CompletableFuture
}