| java.lang.Object | ||
| ↳ | java.util.TimerTask | |
| ↳ | org.springframework.scheduling.timer.DelegatingTimerTask | |
This class is deprecated.
as of Spring 3.0, in favor of the scheduling.concurrent
package which is based on Java 5's java.util.concurrent.ExecutorService
Simple java.util.TimerTask adapter that delegates to a given java.lang.Runnable.
This is often preferable to deriving from TimerTask, to be able to implement an interface rather than extend an abstract base class.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new DelegatingTimerTask.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return the wrapped Runnable implementation.
| |||||||||||
Delegates execution to the underlying Runnable, catching any exception
or error thrown in order to continue scheduled execution.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.TimerTask
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Runnable
| |||||||||||
Create a new DelegatingTimerTask.
| delegate | the Runnable implementation to delegate to |
|---|
Delegates execution to the underlying Runnable, catching any exception or error thrown in order to continue scheduled execution.