Interface Action<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Known Implementing Classes:
DistributedLeaderAction
,RunnableAction
,SpelExpressionAction
public interface Action<S,E>
Generic strategy interface used by a state machine to respond
events by executing an
Action
with a StateContext
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(StateContext<S, E> context) Execute action with aStateContext
.
-
Method Details
-
execute
Execute action with aStateContext
.- Parameters:
context
- the state context
-