Package | Description |
---|---|
commonj.work |
Provides interfaces for commonj Work and WorkManager.
|
Modifier and Type | Class and Description |
---|---|
class |
WorkCompletedException
This exception indicates that a Work started but completed with
an exception.
|
class |
WorkRejectedException
This is thrown then the Work cannot be started.
|
Modifier and Type | Method and Description |
---|---|
WorkException |
WorkEvent.getException()
This returns the exception if any in the case of WORK_COMPLETED.
|
Modifier and Type | Method and Description |
---|---|
Work |
WorkItem.getResult()
This returns the Work once it has completed.
|
WorkItem |
WorkManager.schedule(Work work)
Dispatches a Work asynchronously.
|
WorkItem |
WorkManager.schedule(Work work,
WorkListener wl)
Dispatches a Work asynchronously.
|