|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkScheduler
Defines the contract for scheduling asychronous 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 notfied with the
error details.
Method Summary | ||
---|---|---|
|
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 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 Runnable> void scheduleWork(T work)
work
- The unit of work that needs to be asynchronously executed.
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |