S
- the type of stateE
- the type of eventpublic interface StateMachineExecutor<S,E> extends StateMachineReactiveLifecycle
StateMachine
event executor.Modifier and Type | Interface and Description |
---|---|
static class |
StateMachineExecutor.ExecutorExceptionHolder |
static class |
StateMachineExecutor.MonoSinkStateMachineExecutorCallback |
static interface |
StateMachineExecutor.StateMachineExecutorCallback
Completion callback to notify back complete or error.
|
static interface |
StateMachineExecutor.StateMachineExecutorTransit<S,E>
Callback interface when executor wants to handle transit.
|
Modifier and Type | Method and Description |
---|---|
void |
addStateMachineInterceptor(StateMachineInterceptor<S,E> interceptor)
Adds the state machine interceptor.
|
reactor.core.publisher.Mono<java.lang.Void> |
executeTriggerlessTransitions(StateContext<S,E> context,
State<S,E> state)
Execute and check all triggerless transitions.
|
void |
queueDeferredEvent(org.springframework.messaging.Message<E> message)
Queue deferred event.
|
reactor.core.publisher.Mono<java.lang.Void> |
queueEvent(reactor.core.publisher.Mono<org.springframework.messaging.Message<E>> message,
StateMachineExecutor.StateMachineExecutorCallback callback)
Queue event.
|
void |
setForwardedInitialEvent(org.springframework.messaging.Message<E> message)
Set initial forwarded event.
|
void |
setInitialEnabled(boolean enabled)
Sets the if initial stage is enabled.
|
void |
setStateMachineExecutorTransit(StateMachineExecutor.StateMachineExecutorTransit<S,E> stateMachineExecutorTransit)
Sets the state machine executor transit.
|
startReactively, stopReactively
reactor.core.publisher.Mono<java.lang.Void> queueEvent(reactor.core.publisher.Mono<org.springframework.messaging.Message<E>> message, StateMachineExecutor.StateMachineExecutorCallback callback)
message
- the messagecallback
- the executor callbackvoid queueDeferredEvent(org.springframework.messaging.Message<E> message)
message
- the messagereactor.core.publisher.Mono<java.lang.Void> executeTriggerlessTransitions(StateContext<S,E> context, State<S,E> state)
context
- the state contextstate
- the statevoid setInitialEnabled(boolean enabled)
enabled
- the new flagvoid setForwardedInitialEvent(org.springframework.messaging.Message<E> message)
message
- the forwarded messageStateMachineAccess.setForwardedInitialEvent(Message)
void setStateMachineExecutorTransit(StateMachineExecutor.StateMachineExecutorTransit<S,E> stateMachineExecutorTransit)
stateMachineExecutorTransit
- the state machine executor transitvoid addStateMachineInterceptor(StateMachineInterceptor<S,E> interceptor)
interceptor
- the interceptor