|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Stateful
A Stateful job implements this interface so that it's state can be discovered. State is used to control the flow of execution within Oddjob, as well as being a way of informing client applications of progress.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void addStateListener(StateListener listener) throws JobDestroyedException
listener
- The listener.
JobDestroyedException
void removeStateListener(StateListener listener)
listener
- The listener.StateEvent lastStateEvent()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |