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

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> processCommand(
      AbstractCommand command,
      Graph currentAggregateState
  ) {
    return this.processCommand(command, currentAggregateState,
        MissingFieldResolvingStrategy.STRICT);
  }

  List> processCommand(
      AbstractCommand command,
      Graph currentAggregateState,
      MissingFieldResolvingStrategy missingFieldResolvingStrategy
  );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy