public interface Stateful
Modifier and Type | Method and Description |
---|---|
void |
addStateListener(StateListener listener)
Add a job state listener.
|
StateEvent |
lastStateEvent()
Get the last state event.
|
void |
removeStateListener(StateListener listener)
Remove a job state listener.
|
void addStateListener(StateListener listener) throws JobDestroyedException
listener
- The listener.JobDestroyedException
void removeStateListener(StateListener listener)
listener
- The listener.StateEvent lastStateEvent()