scheduling.concurrent
package which is based on Java 5's java.util.concurrent.ExecutorService
@Deprecated
public class DelegatingTimerTask
extends java.util.TimerTask
This is often preferable to deriving from TimerTask, to be able to implement an interface rather than extend an abstract base class.
Modifier and Type | Field and Description |
---|---|
private java.lang.Runnable |
delegate
Deprecated.
|
private static Log |
logger
Deprecated.
|
Constructor and Description |
---|
DelegatingTimerTask(java.lang.Runnable delegate)
Deprecated.
Create a new DelegatingTimerTask.
|
Modifier and Type | Method and Description |
---|---|
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.
|
private static final Log logger
private final java.lang.Runnable delegate
public DelegatingTimerTask(java.lang.Runnable delegate)
delegate
- the Runnable implementation to delegate topublic final java.lang.Runnable getDelegate()
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask