| java.lang.Object com.xoetrope.task.XScheduler
XScheduler | public class XScheduler (Code) | | A scheduler for tasks
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.4 $
|
Method Summary | |
public int | addJob(Object className, int type, long interval, long startDate, Object args) Adds a job to the scheduler
Parameters: className - the className or an instance of an XExecutable object Parameters: type - the job type, ONCE_OFF_JOB or RECURRING_JOB Parameters: interval - the elapsed time interval till the callback is invoked Parameters: startDate - the start time or 0 for immediate start to the countdown Parameters: args - and arguments to the task. | public void | killJob(int id) |
ONCE_OFF_JOB | final public static int ONCE_OFF_JOB(Code) | | A one off job
|
RECURRING_JOB | final public static int RECURRING_JOB(Code) | | A recurring job
|
XScheduler | public XScheduler()(Code) | | Create a new instance of the scheduler
|
addJob | public int addJob(Object className, int type, long interval, long startDate, Object args)(Code) | | Adds a job to the scheduler
Parameters: className - the className or an instance of an XExecutable object Parameters: type - the job type, ONCE_OFF_JOB or RECURRING_JOB Parameters: interval - the elapsed time interval till the callback is invoked Parameters: startDate - the start time or 0 for immediate start to the countdown Parameters: args - and arguments to the task. the job ID |
killJob | public void killJob(int id)(Code) | | Stop/Kill the job
Parameters: id - the ID of the job/task |
|
|