|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.util.ResponseTimeMonitorImpl
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 | |
int |
getAccessCount()
Return the number of hits this object has handled. |
int |
getAverageResponseTimeMillis()
Return the average response time achieved by this object. |
int |
getBestResponseTimeMillis()
Return the best (lowest) response time achieved by this object. |
java.util.Date |
getLoadDate()
Return the date when this object was loaded. |
long |
getUptime()
Return the number of milliseconds since this object was loaded. |
int |
getWorstResponseTimeMillis()
Return the worst (slowest) response time achieved by this object. |
void |
recordResponseTime(long responseTime)
Utility method to record this response time, updating the best and worst response times if necessary. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ResponseTimeMonitorImpl()
Method Detail |
public final int getAccessCount()
getAccessCount
in interface ResponseTimeMonitor
public final long getUptime()
public final java.util.Date getLoadDate()
public final int getAverageResponseTimeMillis()
getAverageResponseTimeMillis
in interface ResponseTimeMonitor
public final int getBestResponseTimeMillis()
getBestResponseTimeMillis
in interface ResponseTimeMonitor
public final int getWorstResponseTimeMillis()
getWorstResponseTimeMillis
in interface ResponseTimeMonitor
public final void recordResponseTime(long responseTime)
responseTime
- the response time of this requestpublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |