|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.TimerTask org.springframework.scheduling.timer.DelegatingTimerTask
public class DelegatingTimerTask
Simple TimerTask adapter that delegates to a given Runnable.
This is often preferable to deriving from TimerTask, to be able to implement an interface rather than extend an abstract base class.
TimerTask
,
Runnable
Constructor Summary | |
---|---|
DelegatingTimerTask(Runnable delegate)
Create a new DelegatingTimerTask. |
Method Summary | |
---|---|
Runnable |
getDelegate()
Return the wrapped Runnable implementation. |
void |
run()
Delegates execution to the underlying Runnable. |
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 |
Constructor Detail |
---|
public DelegatingTimerTask(Runnable delegate)
delegate
- the Runnable implementation to delegate toMethod Detail |
---|
public final Runnable getDelegate()
public void run()
run
in interface Runnable
run
in class TimerTask
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |