S
- the type of stateE
- the type of eventpublic class InitialTransition<S,E> extends AbstractTransition<S,E>
Transition
used during a state machine start.actions, target
Constructor and Description |
---|
InitialTransition(State<S,E> target)
Instantiates a new initial transition.
|
InitialTransition(State<S,E> target,
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> actions)
Instantiates a new initial transition.
|
InitialTransition(State<S,E> target,
java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>> action)
Instantiates a new initial transition.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Boolean> |
transit(StateContext<S,E> context)
Transit this transition with a give state context.
|
addActionListener, executeTransitionActions, getActions, getGuard, getKind, getName, getSecurityRule, getSource, getTarget, getTrigger, removeActionListener, toString
public InitialTransition(State<S,E> target)
target
- the targetpublic InitialTransition(State<S,E> target, java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>> action)
target
- the targetaction
- the actionpublic reactor.core.publisher.Mono<java.lang.Boolean> transit(StateContext<S,E> context)
Transition
transit
in interface Transition<S,E>
transit
in class AbstractTransition<S,E>
context
- the state context