站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

ResponseTimeMonitor (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.util
Interface ResponseTimeMonitor

All Known Implementing Classes:
ResponseTimeMonitorImpl

public interface ResponseTimeMonitor

Interface implemented by objects that can provide performance information as well as a record of the number of times they are accessed.

Implementing objects must ensure that implementing this interface does not compromise thread safety. However, it may be acceptable for slight innaccuracies in reported statistics to result from the avoidance of synchronization: performance may be well be more important than exact reporting, so long as the errors are not likely to be misleading.

Since:
November 21, 2000
Author:
Rod Johnson

Method Summary
 int getAccessCount()
          Return the number of accesses to this resource.
 int getAverageResponseTimeMillis()
          Return the average response time in milliseconds.
 int getBestResponseTimeMillis()
          Return the best (quickest) response time in milliseconds.
 int getWorstResponseTimeMillis()
          Return the worst (slowest) response time in milliseconds.
 

Method Detail

getAccessCount

int getAccessCount()
Return the number of accesses to this resource.


getAverageResponseTimeMillis

int getAverageResponseTimeMillis()
Return the average response time in milliseconds.


getBestResponseTimeMillis

int getBestResponseTimeMillis()
Return the best (quickest) response time in milliseconds.


getWorstResponseTimeMillis

int getWorstResponseTimeMillis()
Return the worst (slowest) response time in milliseconds.



Copyright (c) 2002-2007 The Spring Framework Project.