|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkItem
This is returned once a Work is submitted to a WorkManager.
It can be used to check the status of Work after it's finished and to
check any exceptions that it threw. If the Work was serializable and
the vendor implementation supports distributed WorkManagers then this
object can be cast to RemoteWorkItem where additional APIs are defined
to exploit this capability. WorkItem instances can also be used with the
WorkManager.waitForAny(java.util.Collection, long)
or WorkManager.waitForAll(java.util.Collection, long)
to wait
for remote or local WorkItems to complete.
Applications can use the WorkItem as a key to correlate the WorkItem back to the running Work object. The WorkItem should implement the equals, compareTo and hashCode methods and is therefore Collection-friendly.
WorkManager
,
RemoteWorkItem
,
WorkListener
Method Summary | |
---|---|
Work |
getResult()
This returns the Work once it has completed. |
int |
getStatus()
This returns the current status of dispatching the Work. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
Work getResult() throws WorkException
WorkException
int getStatus()
WorkEvent
interface.WorkEvent
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |