public interface WorkManager
WorkManager| Modifier and Type | Field and Description |
|---|---|
static long |
IMMEDIATE |
static long |
INDEFINITE |
| Modifier and Type | Method and Description |
|---|---|
WorkItem |
schedule(Work work) |
WorkItem |
schedule(Work work, WorkListener wl) |
boolean |
shutdown(long timeout)
This method is not part of CommonJ but is needed here since our implementation creates threads that needs to be cleaned up.
|
static final long IMMEDIATE
WorkManager.IMMEDIATE, Constant Field Valuesstatic final long INDEFINITE
WorkManager.INDEFINITE, Constant Field ValuesWorkItem schedule(Work work) throws WorkException, IllegalArgumentException
WorkExceptionIllegalArgumentExceptionWorkManager.schedule(commonj.work.Work)WorkItem schedule(Work work, WorkListener wl) throws WorkException, IllegalArgumentException
WorkExceptionIllegalArgumentExceptionWorkManager.schedule(commonj.work.Work, commonj.work.WorkListener)boolean shutdown(long timeout)
timeout - The number of milliseconds until the shutdown is aborted.