S - the type of stateE - the type of eventpublic interface StateMachineService<S,E>
StateMachines
in a runtime environment.| Modifier and Type | Method and Description |
|---|---|
StateMachine<S,E> |
acquireStateMachine(java.lang.String machineId)
Acquires the state machine.
|
StateMachine<S,E> |
acquireStateMachine(java.lang.String machineId,
boolean start)
Acquires the state machine.
|
void |
releaseStateMachine(java.lang.String machineId)
Release the state machine.
|
void |
releaseStateMachine(java.lang.String machineId,
boolean stop)
Release state machine.
|
StateMachine<S,E> acquireStateMachine(java.lang.String machineId)
machineId - the machine idacquireStateMachine(String, boolean)StateMachine<S,E> acquireStateMachine(java.lang.String machineId, boolean start)
machineId - the machine idstart - indicating if machine should be returned startedvoid releaseStateMachine(java.lang.String machineId)
machineId - the machine idreleaseStateMachine(String, boolean)void releaseStateMachine(java.lang.String machineId,
boolean stop)
machineId - the machine idstop - indicating if machine should be stopped