|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkScheduler
Defines the contract for scheduling asynchronous units of work.
Units of work can be scheduled with an optional NotificationListener
.
If a notification listener is specified, the caller will be notified regarding the
status of the work. The unit of work can either be completed, rejected or completed
with an error. If the work completed with an error, the caller is notified with the
error details.
Method Summary | ||
---|---|---|
void |
destroy()
Destroys the work scheduler |
|
|
scheduleWork(T work)
Schedules a unit of work for future execution. |
|
|
scheduleWork(T work,
NotificationListener<T> listener)
Schedules a unit of work for future execution. |
Method Detail |
---|
<T extends java.lang.Runnable> void scheduleWork(T work, NotificationListener<T> listener)
work
- The unit of work that needs to be asynchronously executed.listener
- Notification listener for callbacks.<T extends java.lang.Runnable> void scheduleWork(T work)
work
- The unit of work that needs to be asynchronously executed.void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |