Class CommandResponseManager


  • public class CommandResponseManager
    extends java.lang.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 Detail

      • CommandResponseManager

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

      • commandResponseManagerActor

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

        public akka.actor.typed.ActorSystem<?> actorSystem()
      • 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

        public java.util.concurrent.CompletableFuture<CommandResponseManager.OverallResponse> queryFinalAll​(java.util.List<java.util.concurrent.CompletableFuture<CommandResponse.SubmitResponse>> commands)
        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