Class StateMemory

java.lang.Object
org.oddjob.state.StateMemory
All Implemented Interfaces:
StateListener

public class StateMemory extends Object implements StateListener
A wrapper for a job that holds the state of the job after it's been executed.
Author:
Rob Gordon.
  • Constructor Details

    • StateMemory

      public StateMemory()
  • Method Details

    • jobStateChange

      public void jobStateChange(StateEvent event)
      Description copied from interface: StateListener
      Triggered when the job state changes.
      Specified by:
      jobStateChange in interface StateListener
      Parameters:
      event - The job state event.
    • getJobState

      public State getJobState()
    • getThrowable

      public Throwable getThrowable()
    • run

      public void run(Runnable job)