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 rx.Observable;
public interface SimpleQuery<
AggregateIdT,
AggregateT extends AggregateType,
EventIdT,
EventT extends BaseEvent,
ApplicableEventT extends EventT,
SnapshotIdT,
SnapshotT extends BaseSnapshot,
QueryT extends SimpleQuery
> extends
BaseQuery {
Observable applyEvent(ApplicableEventT event, SnapshotT snapshot);
@Override
default Executor getExecutor() {
return new SimpleExecutor<>();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy