public interface WorkItem extends Comparable
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| Modifier and Type | Method and Description |
|---|---|
Work |
getResult()
This returns the Work once it has completed.
|
int |
getStatus()
This returns the current status of dispatching the Work.
|
compareToWork getResult() throws WorkException
WorkException