S
- the type of stateE
- the type of eventpublic interface Transition<S,E>
Transition
is something what a state machine associates with a state
changes.Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener<S,E> listener)
Adds the action listener.
|
reactor.core.publisher.Mono<java.lang.Void> |
executeTransitionActions(StateContext<S,E> context)
Execute transition actions.
|
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> |
getActions()
Gets the transition actions.
|
java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Boolean>> |
getGuard()
Gets the guard of this transition.
|
TransitionKind |
getKind()
Gets the transition kind.
|
java.lang.String |
getName()
Gets the name.
|
SecurityRule |
getSecurityRule()
Gets the security rule.
|
State<S,E> |
getSource()
Gets the source state of this transition.
|
State<S,E> |
getTarget()
Gets the target state of this transition.
|
Trigger<S,E> |
getTrigger()
Gets the transition trigger.
|
void |
removeActionListener(ActionListener<S,E> listener)
Removes the action listener.
|
reactor.core.publisher.Mono<java.lang.Boolean> |
transit(StateContext<S,E> context)
Transit this transition with a give state context.
|
reactor.core.publisher.Mono<java.lang.Boolean> transit(StateContext<S,E> context)
context
- the state contextreactor.core.publisher.Mono<java.lang.Void> executeTransitionActions(StateContext<S,E> context)
context
- the state contextState<S,E> getSource()
State<S,E> getTarget()
java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Boolean>> getGuard()
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> getActions()
TransitionKind getKind()
SecurityRule getSecurityRule()
java.lang.String getName()
void addActionListener(ActionListener<S,E> listener)
listener
- the listenervoid removeActionListener(ActionListener<S,E> listener)
listener
- the listener