|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Schedulable
An interface to schedulable objects, which can be executed in their own thread provided by a speficied scheduler.
| Method Summary | |
|---|---|
long |
getDelay()
Gets the starting delay. |
long |
getPeriod()
Gets the execution period. |
ObjectName |
getSchedulerName()
Gets the the scheduler of the schedulable. |
void |
setDelay(long delay)
Sets the starting delay between start method invocation and actual execution. |
void |
setPeriod(long period)
Sets the execution period. |
void |
setSchedulerName(ObjectName scheduler)
Sets the scheduler of the schedulable. |
void |
setTime(long time)
Sets the starting time of the first execution. |
| Methods inherited from interface org.norther.tammi.core.base.Startable |
|---|
isStarted, start, stop |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Method Detail |
|---|
ObjectName getSchedulerName()
void setSchedulerName(ObjectName scheduler)
Note that it will be taken into use after next start.
scheduler - the object name of the scheduler or a query.long getPeriod()
void setPeriod(long period)
Note that it will be taken into use after next start.
period - the execution period in msecs.
IllegalArgumentException - if period is less than or equal to zero.long getDelay()
void setDelay(long delay)
delay - the starting delay in msecs.void setTime(long time)
time - the starting time in msecs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||