Package org.springframework.statemachine
Interface StateMachineEventResult<S,E> 
- Type Parameters:
- S- the type of state
- E- the type of event
- All Known Implementing Classes:
- StateMachineEventResult.DefaultStateMachineEventResult
public interface StateMachineEventResult<S,E> 
Interface defining a result for sending an event to a statemachine.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classstatic enumEnumeration of a result type indicating whether a region accepted, denied or deferred an event.
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Mono<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<Void> complete) Create aStateMachineEventResultfrom aRegion,Message, aStateMachineEventResult.ResultTypeand completionMono.org.springframework.messaging.Message<E>Gets the message.Gets the region.Gets the result type.
- 
Method Details- 
getRegionGets the region.- Returns:
- the region
 
- 
getMessageorg.springframework.messaging.Message<E> getMessage()Gets the message.- Returns:
- the message
 
- 
getResultTypeStateMachineEventResult.ResultType getResultType()Gets the result type.- Returns:
- the result type
 
- 
completereactor.core.publisher.Mono<Void> complete()Gets a mono representing completion. Will have exception in a normal reactive chain if there is one.- Returns:
- the mono for completion
 
- 
fromstatic <S,E> StateMachineEventResult<S,E> from(Region<S, E> region, org.springframework.messaging.Message<E> message, StateMachineEventResult.ResultType resultType) - Type Parameters:
- S- the type of state
- E- the type of event
- Parameters:
- region- the region
- message- the message
- resultType- the result type
- Returns:
- the state machine event result
 
- 
fromstatic <S,E> StateMachineEventResult<S,E> from(Region<S, E> region, org.springframework.messaging.Message<E> message, StateMachineEventResult.ResultType resultType, reactor.core.publisher.Mono<Void> complete) Create aStateMachineEventResultfrom aRegion,Message, aStateMachineEventResult.ResultTypeand completionMono.- Type Parameters:
- S- the type of state
- E- the type of event
- Parameters:
- region- the region
- message- the message
- resultType- the result type
- complete- the completion mono
- Returns:
- the state machine event result
 
 
-