public class

DelegatingTimerTask

extends TimerTask
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

Class Overview

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.

Summary

Public Constructors
DelegatingTimerTask(Runnable delegate)
Create a new DelegatingTimerTask.
Public Methods
final Runnable getDelegate()
Return the wrapped Runnable implementation.
void run()
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

Public Constructors

public DelegatingTimerTask (Runnable delegate)

Create a new DelegatingTimerTask.

Parameters
delegate the Runnable implementation to delegate to

Public Methods

public final Runnable getDelegate ()

Return the wrapped Runnable implementation.

public void run ()

Delegates execution to the underlying Runnable, catching any exception or error thrown in order to continue scheduled execution.