ehcache

net.sf.ehcache.util.ratestatistics
Interface RateStatistic

All Known Implementing Classes:
AtomicRateStatistic, UnlockedRateStatistic

public interface RateStatistic

Rate monitoring statistic.

Author:
Chris Dennis

Method Summary
 void event()
          Fired to record the occurrence of a monitored event.
 long getCount()
          Returns the total number of events that have occurred in the lifetime of this statistic.
 float getRate()
          Return the rate of events per unit time.
 

Method Detail

event

void event()
Fired to record the occurrence of a monitored event.


getCount

long getCount()
Returns the total number of events that have occurred in the lifetime of this statistic.

Returns:
total number of events

getRate

float getRate()
Return the rate of events per unit time.

Returns:
event rate

ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.