Class JunctionPseudoState<S,E>
java.lang.Object
org.springframework.statemachine.state.JunctionPseudoState<S,E>
- Type Parameters:
S- the type of stateE- the type of event
- All Implemented Interfaces:
PseudoState<S,E>
Junction implementation of a
PseudoState.- Author:
- Janne Valkealahti
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionJunctionPseudoState(List<JunctionPseudoState.JunctionStateData<S, E>> junctions) Instantiates a new junction pseudo state. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPseudoStateListener(PseudoStateListener<S, E> listener) Registers a newPseudoStateListener.entry(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.getKind()Gets the pseudostate kind.voidsetPseudoStateListeners(List<PseudoStateListener<S, E>> listeners) Registers a newPseudoStateListeners.
-
Constructor Details
-
JunctionPseudoState
Instantiates a new junction pseudo state.- Parameters:
junctions- the junctions
-
-
Method Details
-
getKind
Description copied from interface:PseudoStateGets the pseudostate kind.- Specified by:
getKindin interfacePseudoState<S,E> - Returns:
- the pseudostate kind
-
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> - 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> - Parameters:
context- the context- Returns:
- mono of completion
-
addPseudoStateListener
Description copied from interface:PseudoStateRegisters a newPseudoStateListener.- Specified by:
addPseudoStateListenerin interfacePseudoState<S,E> - Parameters:
listener- the listener
-
setPseudoStateListeners
Description copied from interface:PseudoStateRegisters a newPseudoStateListeners. Clears all existing listeners.- Specified by:
setPseudoStateListenersin interfacePseudoState<S,E> - Parameters:
listeners- the listeners
-