java.lang.ComparableRemoteWorkItempublic interface WorkItem
extends java.lang.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 | Description |
|---|---|---|
Work |
getResult() |
This returns the Work once it has completed.
|
int |
getStatus() |
This returns the current status of dispatching the Work.
|
Work getResult() throws WorkException
WorkException