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

org.enodeframework.eventing.IEventStore.kt Maven / Gradle / Ivy

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

import java.util.concurrent.CompletableFuture

interface IEventStore {
    /**
     * Batch append the given event streams to the event store async.
     */
    fun batchAppendAsync(eventStreams: List): CompletableFuture

    /**
     * Find a single event stream by aggregateRootId and version async.
     */
    fun findAsync(aggregateRootId: String, version: Int): CompletableFuture

    /**
     * Find a single event stream by aggregateRootId and commandId async.
     */
    fun findAsync(aggregateRootId: String, commandId: String): CompletableFuture

    /**
     * Query a range of event streams of a single aggregate from event store async.
     */
    fun queryAggregateEventsAsync(aggregateRootId: String, aggregateRootTypeName: String, minVersion: Int, maxVersion: Int): CompletableFuture>
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy