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,
Date date)
Set the state to the given state with the
given event time.
|
void |
setStateException(Throwable t)
Set the state to an EXCEPTION state.
|
void |
setStateException(Throwable t,
Date date)
Set the state to an EXCEPTION state with
the given event time.
|
void setState(S state) throws JobDestroyedException
state
- JobDestroyedException
void setState(S state, Date date) throws JobDestroyedException
state
- date
- JobDestroyedException
void setStateException(Throwable t) throws JobDestroyedException
t
- The Exception.JobDestroyedException
void setStateException(Throwable t, Date date) throws JobDestroyedException
t
- The Exception.JobDestroyedException