scheduling.concurrent
package which is based on Java 5's java.util.concurrent.ExecutorService
@Deprecated
public class DelegatingTimerTask
extends java.util.TimerTask
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 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.
|
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