|
|||||||||
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.
Field Summary | |
---|---|
private java.lang.Runnable |
delegate
Deprecated. |
private static Log |
logger
Deprecated. |
Constructor Summary | |
---|---|
DelegatingTimerTask(java.lang.Runnable delegate)
Deprecated. Create a new DelegatingTimerTask. |
Method Summary | |
---|---|
java.lang.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 |
Field Detail |
---|
private static final Log logger
private final java.lang.Runnable delegate
Constructor Detail |
---|
public DelegatingTimerTask(java.lang.Runnable delegate)
delegate
- the Runnable implementation to delegate toMethod Detail |
---|
public final java.lang.Runnable getDelegate()
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |