public interface JobExecutionStateMachine extends org.springframework.context.ApplicationListener<KillService.KillEvent>
Modifier and Type | Method and Description |
---|---|
void |
start()
Starts the state machine and returns.
|
void |
stop()
Force an early termination of the state machine, in response to user submitting a kill via API or ctrl-c.
|
States |
waitForStop()
Waits for the state machine to stop executing.
|
void start()
States waitForStop() throws java.lang.InterruptedException
java.lang.InterruptedException
- if the waiting thread is interruptedvoid stop()
StateMachineAutoConfiguration
for details.