public class CronTimeTrigger extends java.lang.Object implements TimeTrigger
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_dayOfMonth |
protected int |
m_dayOfWeek |
protected int |
m_hour |
protected int |
m_minute |
protected int |
m_month |
protected int |
m_year |
| Constructor and Description |
|---|
CronTimeTrigger(int minute,
int hour,
int day,
int month,
int year,
boolean isDayOfWeek)
Constructor for CronTimeTrigger.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getTimeAfter(long moment)
Returns the next time after the given moment when
this trigger goes off.
|
void |
reset()
Reset the cron-trigger.
|
java.lang.String |
toString() |
protected final int m_minute
protected final int m_hour
protected final int m_dayOfMonth
protected final int m_month
protected final int m_dayOfWeek
protected final int m_year
public CronTimeTrigger(int minute,
int hour,
int day,
int month,
int year,
boolean isDayOfWeek)
minute - the minute at which job is scheduled. (0-59)hour - hour at which job is scheduled. (0-23 or -1 for every hour)month - the month at which job is scheduled. (0-11 or -1 for every month)year - the year when job is scheduled (-1 implies every year)day - the dayisDayOfWeek - true if day is a day of week or false if day is day of monthpublic long getTimeAfter(long moment)
getTimeAfter in interface TimeTriggermoment - base point in millisecondspublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.