|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
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 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 | |
---|---|
abstract Work |
getResult() This returns the Work once it has completed. |
abstract 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, 2015, 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 Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |