|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
uws.job.AbstractJob.MyTimerTask
protected final class AbstractJob.MyTimerTask
Definition of a task that a timer of AbstractJob must execute.
Note: This class is very usefull because it lets re-initializing the timers of an AbstractJob after a Tomcat restart.
Indeed a TimerTask is not serializable. This problem can be resolved by using this extension of the TimerTask class
because all its execution part is fully managed by a JobTimerTask instance which is serializable and
saved in the concerned AbstractJob instance.
| Field Summary | |
|---|---|
protected JobTimerTask |
task
|
| Constructor Summary | |
|---|---|
AbstractJob.MyTimerTask(JobTimerTask t)
|
|
| Method Summary | |
|---|---|
void |
run()
|
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final JobTimerTask task
| Constructor Detail |
|---|
public AbstractJob.MyTimerTask(JobTimerTask t)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.util.TimerTask
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||