| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Implementation of ResponseTimeMonitor for use via delegation by objects that implement this interface.
Uses no synchronization, so is suitable for use in a web application.
| Constructor Summary | |
ResponseTimeMonitorImpl()Creates a new ResponseTimeMonitorImpl. | |
| Method Summary | |
final int | getAccessCount()Return the number of hits this object has handled. |
final int | getAverageResponseTimeMillis()Return the average response time achieved by this object. |
final int | getBestResponseTimeMillis()Return the best (lowest) response time achieved by this object. |
final Date | getLoadDate()Return the date when this object was loaded. |
final long | getUptime()Return the number of milliseconds since this object was loaded. |
final int | getWorstResponseTimeMillis()Return the worst (slowest) response time achieved by this object. |
final void | recordResponseTime(long responseTime)Utility method to record this response time, updating the best and worst response times if necessary. |
String | toString() |
| Constructor Detail |
public ResponseTimeMonitorImpl()
| Method Detail |
public final int getAccessCount()
public final int getAverageResponseTimeMillis()
public final int getBestResponseTimeMillis()
public final Date getLoadDate()
public final long getUptime()
public final int getWorstResponseTimeMillis()
public final void recordResponseTime(long responseTime)
public String toString()
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||