S
- the type of stateE
- the type of eventpublic abstract class StateMachineObjectSupport<S,E> extends LifecycleObjectSupport implements org.springframework.beans.factory.BeanNameAware
Modifier and Type | Class and Description |
---|---|
protected class |
StateMachineObjectSupport.StateMachineListenerRelay
This class is used to relay listener events from a submachines which works
as its own listener context.
|
Constructor and Description |
---|
StateMachineObjectSupport() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected java.lang.String |
getBeanName()
Returns a bean name known to context per contract
with
BeanNameAware . |
protected CompositeStateMachineListener<S,E> |
getStateListener() |
protected StateMachineEventPublisher |
getStateMachineEventPublisher()
Gets the state machine event publisher.
|
protected StateMachineInterceptorList<S,E> |
getStateMachineInterceptors() |
protected CompositeStateMachineMonitor<S,E> |
getStateMachineMonitor() |
protected void |
notifyActionMonitor(StateMachine<S,E> stateMachine,
java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>> action,
long duration) |
protected void |
notifyEventNotAccepted(StateContext<S,E> stateContext) |
protected void |
notifyExtendedStateChanged(java.lang.Object key,
java.lang.Object value,
StateContext<S,E> stateContext) |
protected void |
notifyStateChanged(StateContext<S,E> stateContext) |
protected void |
notifyStateEntered(StateContext<S,E> stateContext) |
protected void |
notifyStateExited(StateContext<S,E> stateContext) |
protected void |
notifyStateMachineError(StateContext<S,E> stateContext) |
protected void |
notifyStateMachineStarted(StateContext<S,E> stateContext) |
protected void |
notifyStateMachineStopped(StateContext<S,E> stateContext) |
protected void |
notifyTransition(StateContext<S,E> stateContext) |
protected void |
notifyTransitionEnd(StateContext<S,E> stateContext) |
protected void |
notifyTransitionMonitor(StateMachine<S,E> stateMachine,
Transition<S,E> transition,
long duration) |
protected void |
notifyTransitionStart(StateContext<S,E> stateContext) |
void |
setBeanName(java.lang.String name) |
void |
setContextEventsEnabled(boolean contextEventsEnabled)
Set if context application events are enabled.
|
void |
setStateMachineEventPublisher(StateMachineEventPublisher stateMachineEventPublisher)
Sets the state machine event publisher.
|
protected void |
setStateMachineInterceptors(java.util.List<StateMachineInterceptor<S,E>> interceptors) |
afterPropertiesSet, destroy, doDestroy, doPostStartReactively, doPostStopReactively, doPreStartReactively, doPreStopReactively, getBeanFactory, getPhase, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, start, startReactively, stop, stopReactively
protected void doStart()
public void setBeanName(java.lang.String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
protected java.lang.String getBeanName()
BeanNameAware
.protected StateMachineEventPublisher getStateMachineEventPublisher()
public void setStateMachineEventPublisher(StateMachineEventPublisher stateMachineEventPublisher)
stateMachineEventPublisher
- the new state machine event publisherpublic void setContextEventsEnabled(boolean contextEventsEnabled)
contextEventsEnabled
- the enabled flagprotected CompositeStateMachineListener<S,E> getStateListener()
protected CompositeStateMachineMonitor<S,E> getStateMachineMonitor()
protected void notifyStateChanged(StateContext<S,E> stateContext)
protected void notifyStateEntered(StateContext<S,E> stateContext)
protected void notifyStateExited(StateContext<S,E> stateContext)
protected void notifyEventNotAccepted(StateContext<S,E> stateContext)
protected void notifyTransitionStart(StateContext<S,E> stateContext)
protected void notifyTransition(StateContext<S,E> stateContext)
protected void notifyTransitionEnd(StateContext<S,E> stateContext)
protected void notifyStateMachineStarted(StateContext<S,E> stateContext)
protected void notifyStateMachineStopped(StateContext<S,E> stateContext)
protected void notifyStateMachineError(StateContext<S,E> stateContext)
protected void notifyExtendedStateChanged(java.lang.Object key, java.lang.Object value, StateContext<S,E> stateContext)
protected void notifyTransitionMonitor(StateMachine<S,E> stateMachine, Transition<S,E> transition, long duration)
protected void notifyActionMonitor(StateMachine<S,E> stateMachine, java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>> action, long duration)
protected StateMachineInterceptorList<S,E> getStateMachineInterceptors()
protected void setStateMachineInterceptors(java.util.List<StateMachineInterceptor<S,E>> interceptors)