Package csw.command.client
Class SequencerCommandServiceImpl
java.lang.Object
csw.command.client.SequencerCommandServiceImpl
- All Implemented Interfaces:
csw.command.api.scaladsl.SequencerCommandService
public class SequencerCommandServiceImpl
extends Object
implements csw.command.api.scaladsl.SequencerCommandService
Create a SequencerCommandService for sending commands to sequencer
param: sequencerLocation the destination sequencer location to which sequence needs to be sent
param: actorSystem required for sending sequence commands or querying the sequencer
-
Constructor Summary
ConstructorDescriptionSequencerCommandServiceImpl
(AkkaLocation sequencerLocation, akka.actor.typed.ActorSystem<?> actorSystem) -
Method Summary
Modifier and TypeMethodDescriptionscala.concurrent.Future<CommandResponse.SubmitResponse>
scala.concurrent.Future<CommandResponse.SubmitResponse>
queryFinal
(Id runId, akka.util.Timeout timeout) scala.concurrent.Future<CommandResponse.SubmitResponse>
scala.concurrent.Future<CommandResponse.SubmitResponse>
submitAndWait
(Sequence sequence, akka.util.Timeout timeout)
-
Constructor Details
-
SequencerCommandServiceImpl
public SequencerCommandServiceImpl(AkkaLocation sequencerLocation, akka.actor.typed.ActorSystem<?> actorSystem)
-
-
Method Details
-
query
- Specified by:
query
in interfacecsw.command.api.scaladsl.SequencerCommandService
-
queryFinal
public scala.concurrent.Future<CommandResponse.SubmitResponse> queryFinal(Id runId, akka.util.Timeout timeout) - Specified by:
queryFinal
in interfacecsw.command.api.scaladsl.SequencerCommandService
-
submit
- Specified by:
submit
in interfacecsw.command.api.scaladsl.SequencerCommandService
-
submitAndWait
public scala.concurrent.Future<CommandResponse.SubmitResponse> submitAndWait(Sequence sequence, akka.util.Timeout timeout) - Specified by:
submitAndWait
in interfacecsw.command.api.scaladsl.SequencerCommandService
-