|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkItem
This is returned once a Work is accepted for dispatcher. This is used to retrieve the Work after it's finished and to check any exceptions that it threw.
WorkManager
Method Summary | |
---|---|
java.lang.Object |
getEventTrigger(java.lang.Class listenerInterface)
This returns an event proxy. |
Work |
getResult()
This returns the Work once the Work completes. |
int |
getStatus()
This returns the current status of dispatching the Work. |
Method Detail |
---|
int getStatus()
WorkEvent
Work getResult() throws WorkException
WorkException
java.lang.Object getEventTrigger(java.lang.Class listenerInterface)
If the method called on the proxy returns a value then the return value from the Work object method is returned to the proxy caller.
If the event method on the target Work object throws an exception while processing the event then this is not propogated to the event publisher. The normal EventSource mechanism of reporting the exception to all listeners implementing EventSourceEvents is used. The only listener on the EventSource associated with a Work object is the Work object it-self. Therefore, if you want to log such exceptions then the Work object should implement EventSourceEvents and the listenerExceptionThrown method will be called if any event method on the Work throws an exception.
listenerInterface
- This is the type which the returned proxy emulates. The
event will only be fired if the Work object implements this interface.EventSource
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |