|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkEvent
This is sent to a WorkListener as the Work is processed by a WorkManager.
Field Summary | |
---|---|
static int |
WORK_ACCEPTED
The WORK_ACCEPTED constant indicates Work was successfully submitted to
the WorkManager. |
static int |
WORK_COMPLETED
The WORK_COMPLETED constant indicates the Work completed. |
static int |
WORK_REJECTED
The WORK_REJECTED constant indicates Work.run failed to start. |
static int |
WORK_STARTED
The WORK_STARTED constant indicates the Work was allocated to a thread
and is about to execute. |
Method Summary | |
---|---|
WorkException |
getException()
This returns the exception if any in the case of WORK_COMPLETED. |
long |
getStartDuration()
This returns 0 in the current implementation. |
int |
getType()
This returns WORK_ACCEPTED etc |
Work |
getWork()
This returns a copy of the Work in progress. |
Field Detail |
---|
static final int WORK_ACCEPTED
WORK_ACCEPTED
constant indicates Work was successfully submitted to
the WorkManager. This means the parameters and thread context are valid at this point.
It does not reflect acceptance to a pool or successful thread allocation.
static final int WORK_REJECTED
WORK_REJECTED
constant indicates Work.run failed to start.
This can happen anywhere during the start process. It happens independently of all
other events. Work might be rejected due to the startTimeout expiring,
context propogation failure, security failure, or other internal failures.
static final int WORK_STARTED
WORK_STARTED
constant indicates the Work was allocated to a thread
and is about to execute.
static final int WORK_COMPLETED
WORK_COMPLETED
constant indicates the Work completed. The Work might
have completed successfully or with error.
Method Detail |
---|
int getType()
Work getWork()
long getStartDuration()
WorkException getException()
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |