Package org.oddjob.state
Interface StateChanger<S extends State>
- All Known Implementing Classes:
BaseStateChanger,EventStateChanger,JobStateChanger,OrderedStateChanger,ParentStateChanger,ServiceStateChanger,TimerStateChanger
public interface StateChanger<S extends State>
Implementations provide the ability to change something's
JobState.- Author:
- rob
-
Method Summary
Modifier and TypeMethodDescriptionvoidSet the state to given state.voidsetState(S state, StateInstant stateInstant) Set the state to the given state with the given event time.voidSet the state to an EXCEPTION state.voidsetStateException(Throwable t, StateInstant stateInstant) Set the state to an EXCEPTION state with the given event time.
-
Method Details
-
setState
Set the state to given state.- Parameters:
state- The state.- Throws:
JobDestroyedException
-
setState
Set the state to the given state with the given event time.- Parameters:
state- The state.stateInstant- The unique event time.- Throws:
JobDestroyedException
-
setStateException
Set the state to an EXCEPTION state.- Parameters:
t- The Exception.- Throws:
JobDestroyedException
-
setStateException
Set the state to an EXCEPTION state with the given event time.- Parameters:
t- The Exception.stateInstant- The unique event time.- Throws:
JobDestroyedException
-