| java.lang.Object org.directwebremoting.util.HitMonitor
HitMonitor | public class HitMonitor (Code) | | We need a way to record how heavily used the server is, and adjust our
behavior to reduce the load on the server.
author: Joe Walker [joe at getahead dot ltd dot uk] |
Constructor Summary | |
public | HitMonitor(int seconds) Create a HitMonitor that records the number of hits in the last n
milliseconds. |
Method Summary | |
public int | getHitsInLastPeriod() How to detect the number of hits in the time period specified in the
constructor. | public void | recordHit() |
HitMonitor | public HitMonitor(int seconds)(Code) | | Create a HitMonitor that records the number of hits in the last n
milliseconds.
Parameters: seconds - The number of seconds to record hits for |
getHitsInLastPeriod | public int getHitsInLastPeriod()(Code) | | How to detect the number of hits in the time period specified in the
constructor.
The hit count |
recordHit | public void recordHit()(Code) | | A hit has happened, record some load on the server
|
|
|