public abstract class TaskAdapter extends java.lang.Object implements Task
Task}
,
TaskScheduler}
Modifier and Type | Field and Description |
---|---|
protected int |
interval |
Constructor and Description |
---|
TaskAdapter() |
Modifier and Type | Method and Description |
---|---|
int |
getInterval()
Return the interval of the task should be repeated in MSEL.
|
boolean |
interested()
Task scheduler will call this method to check
whether should invoke run method body.
|
void |
setInterval(int interval)
Set the new task interval in milliseconds.
|
public int getInterval()
getInterval
in interface Task
setInterval}
public void setInterval(int interval)
setInterval
in interface Task
interval
- the new task interval in millisecondsgetInterval}
public boolean interested()
Please note that return false just pause the task but the task is still under the control by task scheduler. If you want remove the task from system, remove it from task scheduler.
interested
in interface Task
TaskScheduler.unregister}
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.