|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scheduler
An interface to schedulers to execute runnable commands as scheduled tasks. The scheduler itself runs in a background thread created by the specified thread factory. The scheduled tasks are executed by the specified executer, which may execute the tasks in the same thread, in separate threads or in a thread pool, depending on its configuration. Typically, the same command may run only in one thread at the time, so the execution period should be longer than the expected execution time of the command.
An idle command can also be scheduled and will be executed whenever there are not other active tasks.
Method Summary | |
---|---|
ObjectName |
getExecutorName()
Gets the the executor of this scheduler. |
ObjectName |
getThreadFactoryName()
Gets the thread factory of this scheduler. |
void |
setExecutorName(ObjectName executor)
Sets the executor of this scheduler. |
void |
setThreadFactoryName(ObjectName factory)
Sets the thread factory of this scheduler. |
Methods inherited from interface org.norther.tammi.core.base.Startable |
---|
isStarted, start, stop |
Methods inherited from interface org.norther.tammi.acorn.util.concurrent.ScheduledTimer |
---|
executeAfterDelay, executeAfterDelay, executeAt, executeAt, executePeriodically, executePeriodically, executePeriodically, getIdleCommand, getIdleDelay, isIdleSupported, setIdleCommand, setIdleDelay, start, stop |
Method Detail |
---|
ObjectName getThreadFactoryName()
void setThreadFactoryName(ObjectName factory)
factory
- the name of the factory or a query.ObjectName getExecutorName()
void setExecutorName(ObjectName executor)
executor
- the object name of the executor or a query.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |