S
- the type of stateE
- the type of eventpublic class JoinPseudoState<S,E> extends AbstractPseudoState<S,E>
PseudoState
.Modifier and Type | Class and Description |
---|---|
static class |
JoinPseudoState.JoinStateData<S,E>
|
Constructor and Description |
---|
JoinPseudoState(java.util.List<java.util.List<State<S,E>>> joins,
java.util.List<JoinPseudoState.JoinStateData<S,E>> joinTargets)
Instantiates a new join pseudo state.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<State<S,E>> |
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<java.lang.Void> |
exit(StateContext<S,E> context)
Initiate an exit sequence for the state.
|
java.util.List<java.util.List<State<S,E>>> |
getJoins()
Gets the join states.
|
void |
reset(java.util.Collection<S> ids)
Resets join state according to given state ids
so that we can continue with correct tracking.
|
addPseudoStateListener, getKind, notifyContext, setPseudoStateListeners
public reactor.core.publisher.Mono<State<S,E>> entry(StateContext<S,E> context)
PseudoState
entry
in interface PseudoState<S,E>
entry
in class AbstractPseudoState<S,E>
context
- the contextpublic reactor.core.publisher.Mono<java.lang.Void> exit(StateContext<S,E> context)
PseudoState
exit
in interface PseudoState<S,E>
exit
in class AbstractPseudoState<S,E>
context
- the contextpublic java.util.List<java.util.List<State<S,E>>> getJoins()
public void reset(java.util.Collection<S> ids)
ids
- the state id's