|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.time.common.TimeRepeat
A utility class for scheduling a repeating trigger. This class implements Schedulable, and may be used as an argument to the constructor for a Scheduler object, which in turn becomes an argument for a call to the factory method, TimeServicesDef.getScheduledTrigger(). To use this class, set the interval of repetition in its constructor, you may also want to call its setFirstScheduleTime() method with the time of day (in milliseconds) at which the first occurrence of the schedule should begin.
TimeServicesDef
Constructor Summary | |
TimeRepeat()
Internal use only. |
|
TimeRepeat(int intervalMillis)
Constructs a TimeRepeat (a Schedulable object) that repeats regularly, for scheduling triggers. |
|
TimeRepeat(long intervalMillis)
Constructs a TimeRepeat that repeats regularly, |
Method Summary | |
long |
getFirstScheduleTime()
|
long |
lastTime()
Returns the last time this Schedulable's schedule() was called. |
long |
schedule(long currentTimeMillis)
Implements the schedule() method from the Schedulable interface. |
void |
setFirstScheduleTime(long firstScheduleTimeInMillis)
Sets the time of the first scheduled occurrence of a regularly repeating schedule. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TimeRepeat()
public TimeRepeat(int intervalMillis)
intervalMillis
- Interval of repetitionpublic TimeRepeat(long intervalMillis)
intervalMillis
- Interval of repetitionMethod Detail |
public long lastTime()
public long schedule(long currentTimeMillis)
currentMillis
- currentTimepublic void setFirstScheduleTime(long firstScheduleTimeInMillis)
firstScheduleTimeInMillis
- the time of the day in milliseconds when the first trigger will runpublic long getFirstScheduleTime()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |