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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionJoinPseudoState(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.voidreset(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:PseudoStateInitiate an entry sequence for the state and return a next state where state machine should go.- Specified by:
entryin interfacePseudoState<S,E> - Overrides:
entryin classAbstractPseudoState<S,E> - Parameters:
context- the context- Returns:
- the next state or null
-
exit
Description copied from interface:PseudoStateInitiate an exit sequence for the state.- Specified by:
exitin interfacePseudoState<S,E> - Overrides:
exitin 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
-