WorkEventpublic class WorkEvent extends EventObject
|This class models the various events that occur during the processing of
|public static final int||WORK_ACCEPTEDIndicates |
Work instance has been accepted.
|public static final int||WORK_REJECTEDIndicates |
Work instance has been rejected.
|public static final int||WORK_STARTEDIndicates |
Work instance has started execution.
|public static final int||WORK_COMPLETEDIndicates |
Work instance has completed execution.
|private int||typeThe event type.|
|private Work||workThe |
Work object on which the event occured.
|private WorkException||excThe exception that occured during |
|private long||startDurationThe start delay duration (in milliseconds).|
|public WorkEvent(Object source, int type, Work work, WorkException exc)|
this.type = type;
this.work = work;
this.exc = exc;
|public WorkEvent(Object source, int type, Work work, WorkException exc, long startDuration)|
this(source, type, work, exc);
this.startDuration = startDuration;
WorkException. The actual
WorkException subtype returned depends on the type of the
Return the start interval duration.
Return the type of this event.
Work instance which is the cause of the event.