|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.util.HitMonitor
public class HitMonitor
We need a way to record how heavily used the server is, and adjust our behavior to reduce the load on the server.
Constructor Summary | |
---|---|
HitMonitor(int seconds)
Create a HitMonitor that records the number of hits in the last n milliseconds. |
Method Summary | |
---|---|
int |
getHitsInLastPeriod()
How to detect the number of hits in the time period specified in the constructor. |
void |
recordHit()
A hit has happened, record some load on the server |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HitMonitor(int seconds)
seconds
- The number of seconds to record hits forMethod Detail |
---|
public void recordHit()
public int getHitsInLastPeriod()
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |