public class WorkEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
WORK_ACCEPTED |
static int |
WORK_COMPLETED |
static int |
WORK_REJECTED |
static int |
WORK_STARTED |
Constructor and Description |
---|
WorkEvent(java.lang.Object source,
int type,
Work work,
WorkException exn)
Called with a Work instance has been accepted.
|
WorkEvent(java.lang.Object source,
int type,
Work work,
WorkException exn,
long startDuration)
Called with a Work instance has been accepted.
|
Modifier and Type | Method and Description |
---|---|
WorkException |
getException()
Returns the work exception
|
long |
getStartDuration()
Returns the start duration.
|
int |
getType()
Returns the type of the event.
|
Work |
getWork()
Returns the work instance.
|
public static final int WORK_ACCEPTED
public static final int WORK_COMPLETED
public static final int WORK_REJECTED
public static final int WORK_STARTED
public WorkEvent(java.lang.Object source, int type, Work work, WorkException exn)
public WorkEvent(java.lang.Object source, int type, Work work, WorkException exn, long startDuration)
public int getType()
public Work getWork()
public long getStartDuration()
public WorkException getException()