public abstract class AbstractStateMachine<S,E> extends LifecycleObjectSupport implements StateMachine<State<S,E>,E>
| Constructor and Description |
|---|
AbstractStateMachine(java.util.Collection<State<S,E>> states,
java.util.Collection<Transition<S,E>> transitions,
State<S,E> initialState) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStateListener(StateMachineListener<State<S,E>,E> listener) |
protected void |
doStart()
Subclasses may implement this method with the start behavior.
|
State<S,E> |
getInitialState() |
State<S,E> |
getState() |
java.util.Collection<State<S,E>> |
getStates() |
void |
sendEvent(E event) |
void |
sendEvent(org.springframework.messaging.Message<E> event) |
afterPropertiesSet, doStop, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstartpublic State<S,E> getInitialState()
getInitialState in interface StateMachine<State<S,E>,E>public void sendEvent(org.springframework.messaging.Message<E> event)
public void sendEvent(E event)
protected void doStart()
LifecycleObjectSupportLifecycleObjectSupport.lifecycleLock.doStart in class LifecycleObjectSupportpublic void addStateListener(StateMachineListener<State<S,E>,E> listener)
addStateListener in interface StateMachine<State<S,E>,E>