|
||||||||||
| 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.ShutdownAlarm
public class ShutdownAlarm
An Alarm that allows the system to close all connections when it is shutting down.
WARNING: This code has a non-obvious side effect - The server load monitor (which hands out shutdown messages) also monitors usage by looking at the number of connected alarms.
| Constructor Summary | |
|---|---|
ShutdownAlarm(ServerLoadMonitor serverLoadMonitor)
Register ourselves with the ServerLoadMonitor so we can raise an Alarm if we get shutdown |
|
| 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShutdownAlarm(ServerLoadMonitor serverLoadMonitor)
serverLoadMonitor - | Method Detail |
|---|
public void setAlarmAction(org.directwebremoting.dwrp.Sleeper sleeper)
Sleeper#wakeUp().
setAlarmAction in class BasicAlarmsleeper - The action to awake when the alarm goes offpublic void cancel()
Sleeper#wakeUp().
See the note about late calls above.
cancel in class BasicAlarm
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||