public class MissionControlSupport extends java.lang.Object implements MissionStubSupport
Modifier and Type | Method and Description |
---|---|
OngoingMissionRun |
control(io.molr.commons.domain.MissionHandle handle) |
OngoingMissionRun |
control(reactor.core.publisher.Mono<io.molr.commons.domain.MissionHandle> handle) |
static MissionControlSupport |
from(Mole mole) |
OngoingMissionRun |
start(io.molr.commons.domain.Mission mission,
java.util.Map<java.lang.String,java.lang.Object> missionParameters) |
<R> OngoingReturningMissionRun<R> |
start(MissionStub0<R> stub)
Initiates the mission represented by the stub and returns control to the running
Mission |
<P1,R> OngoingReturningMissionRun<R> |
start(MissionStub1<P1,R> stub,
P1 p1)
Initiates the mission represented by the stub and returns control to the running
Mission |
<P1,P2,R> OngoingReturningMissionRun<R> |
start(MissionStub2<P1,P2,R> stub,
P1 p1,
P2 p2)
Initiates the mission represented by the stub and returns control to the running
Mission |
OngoingMissionRun |
start(java.lang.String missionName,
java.util.Map<java.lang.String,java.lang.Object> missionParameters) |
OngoingMissionRun |
start(VoidStub0 stub)
Initiates the mission represented by the stub and returns control to the running
Mission |
<P1> OngoingMissionRun |
start(VoidStub1<P1> stub,
P1 p1)
Initiates the mission represented by the stub and returns control to the running
Mission |
<P1,P2> OngoingMissionRun |
start(VoidStub2<P1,P2> stub,
P1 p1,
P2 p2)
Initiates the mission represented by the stub and returns control to the running
Mission |
public static MissionControlSupport from(Mole mole)
mole
- the Mole
MissionControlSupport
with specified Mole
public OngoingMissionRun start(io.molr.commons.domain.Mission mission, java.util.Map<java.lang.String,java.lang.Object> missionParameters)
mission
- the Mission
which has been registered with the Mole
missionParameters
- the mission parameters required by the Mission
during it's executionMission
public OngoingMissionRun start(java.lang.String missionName, java.util.Map<java.lang.String,java.lang.Object> missionParameters)
missionName
- the mission namemissionParameters
- the mission parameters required by the Mission
during it's executionMission
public OngoingMissionRun control(reactor.core.publisher.Mono<io.molr.commons.domain.MissionHandle> handle)
handle
- the MissionHandle
to the running Mission
Mission
represented by the argumentpublic OngoingMissionRun control(io.molr.commons.domain.MissionHandle handle)
handle
- the MissionHandle
to the running Mission
Mission
represented by the argumentpublic OngoingMissionRun start(VoidStub0 stub)
MissionStubSupport
Mission
start
in interface MissionStubSupport
stub
- the VoidStub0
Mission
public <R> OngoingReturningMissionRun<R> start(MissionStub0<R> stub)
MissionStubSupport
Mission
start
in interface MissionStubSupport
R
- the return type of Mission
stub
- the MissionStub0
Mission
public <P1> OngoingMissionRun start(VoidStub1<P1> stub, P1 p1)
MissionStubSupport
Mission
start
in interface MissionStubSupport
P1
- the type of parameter 1stub
- the VoidStub1
p1
- the parameter 1 of Mission
Mission
public <P1,R> OngoingReturningMissionRun<R> start(MissionStub1<P1,R> stub, P1 p1)
MissionStubSupport
Mission
start
in interface MissionStubSupport
P1
- the type of parameter 1R
- the return type of Mission
stub
- the MissionStub1
p1
- the parameter 1 of Mission
Mission
public <P1,P2> OngoingMissionRun start(VoidStub2<P1,P2> stub, P1 p1, P2 p2)
MissionStubSupport
Mission
start
in interface MissionStubSupport
P1
- the type of parameter 1P2
- the type of parameter 2stub
- the VoidStub2
p1
- the parameter 1 of Mission
p2
- the parameter 2 of Mission
Mission
public <P1,P2,R> OngoingReturningMissionRun<R> start(MissionStub2<P1,P2,R> stub, P1 p1, P2 p2)
MissionStubSupport
Mission
start
in interface MissionStubSupport
P1
- the type of parameter 1P2
- the type of parameter 2R
- the return type of Mission
stub
- the MissionStub2
p1
- the parameter 1 of Mission
p2
- the parameter 2 of Mission
Mission