R
- the returntype of the missionpublic class OngoingReturningMissionRun<R> extends OngoingMissionRun
OngoingMissionRun.ReturnHelper<T>
Constructor and Description |
---|
OngoingReturningMissionRun(Mole mole,
reactor.core.publisher.Mono<io.molr.commons.domain.MissionHandle> handle,
java.lang.Class<R> returnType) |
Modifier and Type | Method and Description |
---|---|
OngoingReturningMissionRun<R> |
and()
Gives meaning to method chaining when chaining two unrelated methods
|
R |
awaitOuputValue() |
OngoingMissionRun.ReturnHelper<R> |
returnOutput() |
asyncHandle, await, await, awaitFinished, awaitFinished, awaitHandle, forget, instruct, mole, returnResult, returnState
public OngoingReturningMissionRun(Mole mole, reactor.core.publisher.Mono<io.molr.commons.domain.MissionHandle> handle, java.lang.Class<R> returnType)
mole
- the Mole
which has missions registeredhandle
- the MissionHandle
of running Mission
returnType
- the type for return value of Mission
public OngoingReturningMissionRun<R> and()
and
in class OngoingMissionRun
OngoingReturningMissionRun
public R awaitOuputValue()
R
of Mission
when RunState
is FINISHEDpublic OngoingMissionRun.ReturnHelper<R> returnOutput()
ReturnHelper
to get output R