|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.dwrp.BasicAlarm
org.directwebremoting.dwrp.TimedAlarm
public class TimedAlarm
An Alarm that goes off after a certain length of time.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
The log stream |
protected long |
waitTime
How long do we wait for? |
| Constructor Summary | |
|---|---|
TimedAlarm(long waitTime)
|
|
| Method Summary | |
|---|---|
void |
cancel()
Prevent further calls to Sleeper.wakeUp(). |
void |
setAlarmAction(org.directwebremoting.dwrp.Sleeper sleeper)
Alarms need something to do when they go off. |
| Methods inherited from class org.directwebremoting.dwrp.BasicAlarm |
|---|
raiseAlarm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long waitTime
protected static final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public TimedAlarm(long waitTime)
waitTime - How long we wait before the Alarm goes off| Method Detail |
|---|
public void cancel()
Sleeper.wakeUp().
See the note about late calls above.
cancel in class BasicAlarmpublic void setAlarmAction(org.directwebremoting.dwrp.Sleeper sleeper)
Sleeper.wakeUp().
setAlarmAction in class BasicAlarmsleeper - The action to awake when the alarm goes off
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||