public class Scheduler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
log |
Constructor and Description |
---|
Scheduler() |
Modifier and Type | Method and Description |
---|---|
static void |
addTimerTask(TimerTask task)
Adds a scheduled task.
|
static TimerTask |
getTimerTaskById(long taskId)
Gets the scheduled task for a given task ID.
|
static java.util.Collection<TimerTask> |
getTimerTasksByTargetBean(java.lang.Class targetBean)
Gets the scheduled tasks for a given target bean.
|
static void |
removeTimerTask(TimerTask scheduledTask)
Removes a scheduled task.
|
public static void addTimerTask(TimerTask task)
task
- The task to add.public static TimerTask getTimerTaskById(long taskId)
taskId
- The ID of the task to match.public static java.util.Collection<TimerTask> getTimerTasksByTargetBean(java.lang.Class targetBean)
targetBean
- The target bean to match.public static void removeTimerTask(TimerTask scheduledTask)
scheduledTask
- The scheduled task to remove.