|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.core.work.Jsr237WorkScheduler
public class Jsr237WorkScheduler
A work scheduler implementation based on a JSR 237 work manager.
This needs a JSR 237 work manager implementation available for scheduling work. Instances can be configured with a work manager implementation that is injected in. It is the responsibility of the runtime environment to make a work manager implementation available. For example, if the managed environment supports work manager the runtime can use the appropriate lookup mechanism to inject the work manager implementation.
Constructor Summary | |
---|---|
Jsr237WorkScheduler()
Initializes the JSR 237 work manager. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Jsr237WorkScheduler()
jsr237WorkManager
- JSR 237 work manager.Method Detail |
---|
public <T extends java.lang.Runnable> void scheduleWork(T work)
scheduleWork
in interface WorkScheduler
work
- The unit of work that needs to be asynchronously executed.public <T extends java.lang.Runnable> void scheduleWork(T work, NotificationListener<T> listener)
scheduleWork
in interface WorkScheduler
work
- The unit of work that needs to be asynchronously executed.listener
- Notification listener for callbacks.public void destroy()
WorkScheduler
destroy
in interface WorkScheduler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |