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

com.github.rahulsom.grooves.queries.internal.SimpleQuery Maven / Gradle / Ivy

package com.github.rahulsom.grooves.queries.internal;

import com.github.rahulsom.grooves.api.AggregateType;
import com.github.rahulsom.grooves.api.EventApplyOutcome;
import com.github.rahulsom.grooves.api.events.BaseEvent;
import com.github.rahulsom.grooves.api.snapshots.internal.BaseSnapshot;
import org.reactivestreams.Publisher;

public interface SimpleQuery<
        AggregateIdT,
        AggregateT extends AggregateType,
        EventIdT,
        EventT extends BaseEvent,
        ApplicableEventT extends EventT,
        SnapshotIdT,
        SnapshotT extends BaseSnapshot,
        QueryT extends SimpleQuery
        > extends
        BaseQuery {

    Publisher applyEvent(ApplicableEventT event, SnapshotT snapshot);

    @Override
    default Executor getExecutor() {
        return new SimpleExecutor<>();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy