Class CommandResponseManager

java.lang.Object
csw.command.client.CommandResponseManager

public class CommandResponseManager extends Object
Wrapper API for interacting with Command Response Manager of a component

param: commandResponseManagerActor underlying actor managing command responses for started commands param: actorSystem actor system for allowing sending messages in API

  • Constructor Details

    • CommandResponseManager

      public CommandResponseManager(akka.actor.typed.ActorRef<MiniCRM.CRMMessage> commandResponseManagerActor, akka.actor.typed.ActorSystem<?> actorSystem)
  • Method Details

    • commandResponseManagerActor

      public akka.actor.typed.ActorRef<MiniCRM.CRMMessage> commandResponseManagerActor()
    • actorSystem

      public akka.actor.typed.ActorSystem<?> actorSystem()
    • updateCommand

      public void updateCommand(CommandResponse.SubmitResponse submitResponse)
      Add a new command or update an existing command with the provided status

      Parameters:
      submitResponse - final update for a started command CommandResponse.SubmitResponse
    • ex

      public scala.concurrent.ExecutionContext ex()
    • queryFinalAll

      public scala.concurrent.Future<CommandResponseManager.OverallResponse> queryFinalAll(scala.collection.immutable.Seq<scala.concurrent.Future<CommandResponse.SubmitResponse>> commands)
      queryFinal allows executing code when all the provided commands have completed.

      Parameters:
      commands - commands that have been started with submit or submitAndWait
      Returns:
      An overall response indicated success or failure
    • queryFinalAll

      Java API: queryFinal allows executing code when all the provided commands have completed.

      Parameters:
      commands - commands that have been started with submit or submitAndWait
      Returns:
      An overall response indicated success or failure