S
- the type of stateE
- the type of eventpublic interface StateMachineEventResult<S,E>
Modifier and Type | Interface and Description |
---|---|
static class |
StateMachineEventResult.DefaultStateMachineEventResult<S,E> |
static class |
StateMachineEventResult.ResultType
Enumeration of a result type indicating whether a region accepted, denied or
deferred an event.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
complete()
Gets a mono representing completion.
|
static <S,E> StateMachineEventResult<S,E> |
from(Region<S,E> region,
org.springframework.messaging.Message<E> message,
StateMachineEventResult.ResultType resultType)
|
static <S,E> StateMachineEventResult<S,E> |
from(Region<S,E> region,
org.springframework.messaging.Message<E> message,
StateMachineEventResult.ResultType resultType,
reactor.core.publisher.Mono<java.lang.Void> complete)
Create a
StateMachineEventResult from a Region ,
Message , a StateMachineEventResult.ResultType and completion Mono . |
org.springframework.messaging.Message<E> |
getMessage()
Gets the message.
|
Region<S,E> |
getRegion()
Gets the region.
|
StateMachineEventResult.ResultType |
getResultType()
Gets the result type.
|
org.springframework.messaging.Message<E> getMessage()
StateMachineEventResult.ResultType getResultType()
reactor.core.publisher.Mono<java.lang.Void> complete()
static <S,E> StateMachineEventResult<S,E> from(Region<S,E> region, org.springframework.messaging.Message<E> message, StateMachineEventResult.ResultType resultType)
S
- the type of stateE
- the type of eventregion
- the regionmessage
- the messageresultType
- the result typestatic <S,E> StateMachineEventResult<S,E> from(Region<S,E> region, org.springframework.messaging.Message<E> message, StateMachineEventResult.ResultType resultType, reactor.core.publisher.Mono<java.lang.Void> complete)
StateMachineEventResult
from a Region
,
Message
, a StateMachineEventResult.ResultType
and completion Mono
.S
- the type of stateE
- the type of eventregion
- the regionmessage
- the messageresultType
- the result typecomplete
- the completion mono