ai.stapi.graphsystem.dynamiccommandprocessor.DynamicCommandProcessor Maven / Gradle / Ivy
package ai.stapi.graphsystem.dynamiccommandprocessor;
import ai.stapi.graph.Graph;
import ai.stapi.identity.UniqueIdentifier;
import ai.stapi.graphsystem.messaging.command.AbstractCommand;
import ai.stapi.graphoperations.objectGraphMapper.model.MissingFieldResolvingStrategy;
import ai.stapi.graphsystem.messaging.event.AggregateGraphUpdatedEvent;
import java.util.List;
public interface DynamicCommandProcessor {
default List extends AggregateGraphUpdatedEvent extends UniqueIdentifier>> processCommand(
AbstractCommand extends UniqueIdentifier> command,
Graph currentAggregateState
) {
return this.processCommand(command, currentAggregateState,
MissingFieldResolvingStrategy.STRICT);
}
List extends AggregateGraphUpdatedEvent extends UniqueIdentifier>> processCommand(
AbstractCommand extends UniqueIdentifier> command,
Graph currentAggregateState,
MissingFieldResolvingStrategy missingFieldResolvingStrategy
);
}