public interface StateChanger<S extends State>
JobState.| Modifier and Type | Method and Description |
|---|---|
void |
setState(S state)
Set the state to given state.
|
void |
setState(S state,
java.util.Date date)
Set the state to the given state with the
given event time.
|
void |
setStateException(java.lang.Throwable t)
Set the state to an EXCEPTION state.
|
void |
setStateException(java.lang.Throwable t,
java.util.Date date)
Set the state to an EXCEPTION state with
the given event time.
|
void setState(S state) throws JobDestroyedException
state - JobDestroyedExceptionvoid setState(S state, java.util.Date date) throws JobDestroyedException
state - date - JobDestroyedExceptionvoid setStateException(java.lang.Throwable t)
throws JobDestroyedException
t - The Exception.JobDestroyedExceptionvoid setStateException(java.lang.Throwable t,
java.util.Date date)
throws JobDestroyedException
t - The Exception.JobDestroyedException