|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.resources.TimerTrigger
public class TimerTrigger
Trigger for delay, period
| Constructor Summary | |
|---|---|
TimerTrigger()
Constructs a new timer trigger. |
|
TimerTrigger(long firstTime)
Creates a timer trigger. |
|
TimerTrigger(long firstTime,
long period)
Creates a timer trigger. |
|
| Method Summary | |
|---|---|
long |
getFirstTime()
|
long |
getPeriod()
|
long |
nextTime(long now)
Returns the time of the next trigger event |
void |
setFirstTime(long firstTime)
|
void |
setPeriod(long period)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimerTrigger()
public TimerTrigger(long firstTime)
firstTime - The first time the trigger should fire, in milliseconds.
public TimerTrigger(long firstTime,
long period)
firstTime - The first time the trigger should fire, in milliseconds.period - The interval, in milliseconds, the timer should be triggered.| Method Detail |
|---|
public void setFirstTime(long firstTime)
public long getFirstTime()
public void setPeriod(long period)
public long getPeriod()
public long nextTime(long now)
nextTime in interface Triggernow - The current time.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||