public abstract class TimerTask
extends java.lang.Object
| Constructor and Description |
|---|
TimerTask(long delayMs)
Instantiates a new Timer task.
|
TimerTask(long delay,
java.util.concurrent.TimeUnit unit)
Instantiates a new Timer task.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel task.
|
abstract void |
run(TaskEntity taskEntity)
Run.
|
public TimerTask(long delayMs)
delayMs - the delay mspublic TimerTask(long delay,
java.util.concurrent.TimeUnit unit)
delay - the delayunit - the unitpublic void cancel()
public abstract void run(TaskEntity taskEntity)
taskEntity - the task entityCopyright © 2024 The Apache Software Foundation. All rights reserved.