Class JoinPseudoState<S,E>
java.lang.Object
org.springframework.statemachine.state.AbstractPseudoState<S,E>
org.springframework.statemachine.state.JoinPseudoState<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
PseudoState<S,
E>
Join implementation of a
PseudoState
.- Author:
- Janne Valkealahti
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionJoinPseudoState
(List<List<State<S, E>>> joins, List<JoinPseudoState.JoinStateData<S, E>> joinTargets) Instantiates a new join pseudo state. -
Method Summary
Modifier and TypeMethodDescriptionentry
(StateContext<S, E> context) Initiate an entry sequence for the state and return a next state where state machine should go.reactor.core.publisher.Mono<Void>
exit
(StateContext<S, E> context) Initiate an exit sequence for the state.getJoins()
Gets the join states.void
reset
(Collection<S> ids) Resets join state according to given state ids so that we can continue with correct tracking.Methods inherited from class org.springframework.statemachine.state.AbstractPseudoState
addPseudoStateListener, getKind, notifyContext, setPseudoStateListeners
-
Constructor Details
-
Method Details
-
entry
Description copied from interface:PseudoState
Initiate an entry sequence for the state and return a next state where state machine should go.- Specified by:
entry
in interfacePseudoState<S,
E> - Overrides:
entry
in classAbstractPseudoState<S,
E> - Parameters:
context
- the context- Returns:
- the next state or null
-
exit
Description copied from interface:PseudoState
Initiate an exit sequence for the state.- Specified by:
exit
in interfacePseudoState<S,
E> - Overrides:
exit
in classAbstractPseudoState<S,
E> - Parameters:
context
- the context- Returns:
- mono of completion
-
getJoins
Gets the join states.- Returns:
- the joins
-
reset
Resets join state according to given state ids so that we can continue with correct tracking.- Parameters:
ids
- the state id's
-