com.netflix.eureka.util
Class MeasuredRate

java.lang.Object
  extended by com.netflix.eureka.util.MeasuredRate

public class MeasuredRate
extends java.lang.Object

Utility class for getting a count in last X milliseconds


Constructor Summary
MeasuredRate(long sampleInterval)
           
 
Method Summary
 long getCount()
          Returns the count in the last sample interval.
 void increment()
          Increments the count in the current sample interval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeasuredRate

public MeasuredRate(long sampleInterval)
Parameters:
sampleInterval - in milliseconds
Method Detail

getCount

public long getCount()
Returns the count in the last sample interval.


increment

public void increment()
Increments the count in the current sample interval.