Package twitter4j.management
Class InvocationStatisticsCalculator
java.lang.Object
twitter4j.management.InvocationStatisticsCalculator
- All Implemented Interfaces:
InvocationStatistics
Object that collects/aggregates statistics for the invocation of a given method.
-
Constructor Details
-
InvocationStatisticsCalculator
- Parameters:
name- the name of this API methodhistorySize- the number of calls to track (for invocation time averaging)
-
-
Method Details
-
getName
Description copied from interface:InvocationStatisticsreturn name- Specified by:
getNamein interfaceInvocationStatistics- Returns:
- name
-
getCallCount
public long getCallCount()Description copied from interface:InvocationStatisticsreturn call count- Specified by:
getCallCountin interfaceInvocationStatistics- Returns:
- call count
-
getErrorCount
public long getErrorCount()Description copied from interface:InvocationStatisticsreturn error count- Specified by:
getErrorCountin interfaceInvocationStatistics- Returns:
- error count
-
getTotalTime
public long getTotalTime()Description copied from interface:InvocationStatisticsreturns total time- Specified by:
getTotalTimein interfaceInvocationStatistics- Returns:
- total time
-
getAverageTime
public long getAverageTime()Description copied from interface:InvocationStatisticsreturn average time- Specified by:
getAverageTimein interfaceInvocationStatistics- Returns:
- average time
-
reset
public void reset()Description copied from interface:InvocationStatisticsreset statistics- Specified by:
resetin interfaceInvocationStatistics
-
toString
-