|
|||||||||
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
scheduling.concurrent
package which is based on Java 5's java.util.concurrent.ExecutorService
@Deprecated 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.
Constructor Summary | |
---|---|
DelegatingTimerTask(Runnable delegate)
Deprecated. Create a new DelegatingTimerTask. |
Method Summary | |
---|---|
Runnable |
getDelegate()
Deprecated. Return the wrapped Runnable implementation. |
void |
run()
Deprecated. Delegates execution to the underlying Runnable, catching any exception or error thrown in order to continue scheduled execution. |
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |