public interface WorkManager
| Modifier and Type | Field and Description |
|---|---|
static long |
IMMEDIATE |
static long |
INDEFINITE |
static long |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
void |
doWork(Work work)
Accepts a work instance for processing.
|
void |
doWork(Work work,
long startTimeout,
ExecutionContext context,
WorkListener workListener)
Accepts a work instance for processing.
|
void |
scheduleWork(Work work)
Schedules a work instance.
|
void |
scheduleWork(Work work,
long startTimeout,
ExecutionContext context,
WorkListener listener)
Schedules a work instance.
|
long |
startWork(Work work)
Accepts a work instance for processing.
|
long |
startWork(Work work,
long startTimeout,
ExecutionContext context,
WorkListener listener)
Accepts a work instance for processing.
|
static final long IMMEDIATE
static final long INDEFINITE
static final long UNKNOWN
void doWork(Work work) throws WorkException
WorkExceptionvoid doWork(Work work, long startTimeout, ExecutionContext context, WorkListener workListener) throws WorkException
WorkExceptionlong startWork(Work work) throws WorkException
WorkExceptionlong startWork(Work work, long startTimeout, ExecutionContext context, WorkListener listener) throws WorkException
WorkExceptionvoid scheduleWork(Work work) throws WorkException
WorkExceptionvoid scheduleWork(Work work, long startTimeout, ExecutionContext context, WorkListener listener) throws WorkException
WorkException