S - the type of stateE - the type of eventpublic interface StateMachineExecutor<S,E>
StateMachine event executor.| Modifier and Type | Interface and Description |
|---|---|
static interface |
StateMachineExecutor.StateMachineExecutorTransit<S,E>
Callback interface when executor wants to handle transit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute
StateMachineExecutor logic. |
void |
queueDeferredEvent(org.springframework.messaging.Message<E> message)
Queue deferred event.
|
void |
queueEvent(org.springframework.messaging.Message<E> message)
Queue event.
|
void |
queueTrigger(Trigger<S,E> trigger,
org.springframework.messaging.Message<E> message)
Queue trigger.
|
void |
setStateMachineExecutorTransit(StateMachineExecutor.StateMachineExecutorTransit<S,E> stateMachineExecutorTransit)
Sets the state machine executor transit.
|
void |
start()
Start executor.
|
void |
stop()
Stop executor.
|
void queueEvent(org.springframework.messaging.Message<E> message)
message - the messagevoid queueTrigger(Trigger<S,E> trigger, org.springframework.messaging.Message<E> message)
trigger - the triggermessage - the messagevoid queueDeferredEvent(org.springframework.messaging.Message<E> message)
message - the messagevoid execute()
StateMachineExecutor logic.void start()
LifecycleObjectSupport.start()void stop()
LifecycleObjectSupport.stop()void setStateMachineExecutorTransit(StateMachineExecutor.StateMachineExecutorTransit<S,E> stateMachineExecutorTransit)
stateMachineExecutorTransit - the state machine executor transit