Work instance.
| Modifier and Type | Field and Description |
|---|---|
| private WorkException | exc
The exception that occured during |
| private long | startDuration
The start delay duration (in milliseconds). |
| private int | type
The event type. |
| private Work | work
The |
| public static final int | WORK_ACCEPTED
Indicates |
| public static final int | WORK_COMPLETED
Indicates |
| public static final int | WORK_REJECTED
Indicates |
| public static final int | WORK_STARTED
Indicates |
| Access | Constructor and Description |
|---|---|
| public | WorkEvent(Object
The object on which the event initially
occurred. source, int The event type. type, Work The work, WorkException Work object on which
the event occured.The exception that occured during
exc)Work processing.Constructor. |
| public | WorkEvent(Object
The object on which the event initially
occurred. source, int The event type. type, Work The work, WorkException Work object on which
the event occured.The exception that occured during
exc, long Work processing.The start delay duration
(in milliseconds). startDuration)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public WorkException | Returns: aWorkRejectedException or a
WorkCompletedException, if any.Return the |
| public long | Returns: the time elapsed (in milliseconds) since theWork
was accepted, until the Work execution started. Note,
this does not offer real-time guarantees. It is valid to return -1, if
the actual start interval duration is unknown.Return the start interval duration. |
| public int | |
| public Work |
| exc | back to summary |
|---|---|
| private WorkException exc The exception that occured during | |
| startDuration | back to summary |
|---|---|
| private long startDuration The start delay duration (in milliseconds). | |
| type | back to summary |
|---|---|
| private int type The event type. | |
| work | back to summary |
|---|---|
| private Work work The | |
| WORK_ACCEPTED | back to summary |
|---|---|
| public static final int WORK_ACCEPTED Indicates | |
| WORK_COMPLETED | back to summary |
|---|---|
| public static final int WORK_COMPLETED Indicates | |
| WORK_REJECTED | back to summary |
|---|---|
| public static final int WORK_REJECTED Indicates | |
| WORK_STARTED | back to summary |
|---|---|
| public static final int WORK_STARTED Indicates | |
| WorkEvent | back to summary |
|---|---|
| public WorkEvent(Object source, int type, Work work, WorkException exc) Constructor.
| |
| WorkEvent | back to summary |
|---|---|
| public WorkEvent(Object source, int type, Work work, WorkException exc, long startDuration) Constructor.
| |
| getException | back to summary |
|---|---|
| public WorkException getException() Return the
| |
| getStartDuration | back to summary |
|---|---|
| public long getStartDuration() Return the start interval duration.
| |
| getType | back to summary |
|---|---|
| public int getType() Return the type of this event.
| |
| getWork | back to summary |
|---|---|
| public Work getWork() Return the
| |