public class ScheduleInfo extends Object
Constructor and Description |
---|
ScheduleInfo(String pattern,
Date firsttime)
Create the schedule info object.
|
Modifier and Type | Method and Description |
---|---|
Date |
getNextRun()
Compute the next run of this schedule.
|
Date |
getNextRun(Date date)
Compute the next run of this schedule.
|
void |
setFirstTime(Date firsttime)
Set the start time of the schedule.
|
String |
toString() |
public ScheduleInfo(String pattern, Date firsttime)
pattern
- a pattern in cron-syntax (see system adminstration guide, section Timer, for details) or an
integer (as String object) defining the interval in seconds.firsttime
- the start of the schedule (may be null).public void setFirstTime(Date firsttime)
firsttime
- a date objectpublic Date getNextRun()
public Date getNextRun(Date date)
date
- a date object@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.