@Module public class WorkManagerImpl extends java.lang.Object implements WorkManager
IMMEDIATE, INDEFINITE, UNKNOWN
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Closes the work manager.
|
void |
doWork(Work work)
Accepts a work instance for processing.
|
void |
doWork(Work work,
long startTimeout,
ExecutionContext context,
WorkListener listener)
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.
|
public void doWork(Work work) throws WorkException
doWork
in interface WorkManager
WorkException
public void doWork(Work work, long startTimeout, ExecutionContext context, WorkListener listener) throws WorkException
doWork
in interface WorkManager
WorkException
public long startWork(Work work) throws WorkException
startWork
in interface WorkManager
WorkException
public long startWork(Work work, long startTimeout, ExecutionContext context, WorkListener listener) throws WorkException
startWork
in interface WorkManager
WorkException
public void scheduleWork(Work work) throws WorkException
scheduleWork
in interface WorkManager
WorkException
public void scheduleWork(Work work, long startTimeout, ExecutionContext context, WorkListener listener) throws WorkException
scheduleWork
in interface WorkManager
WorkException
public void destroy()