ehcache

net.sf.ehcache.util.counter.sampled
Interface SampledRateCounter

All Superinterfaces:
Counter, SampledCounter
All Known Implementing Classes:
SampledRateCounterImpl, SampledRateCounterProxy

public interface SampledRateCounter
extends SampledCounter

Interface of a sampled rate counter -- a counter that keeps sampled values of rates

Since:
1.7
Author:
Abhishek Sanoujam

Method Summary
 void decrement(long numerator, long denominator)
          Decrements the numerator and denominator by the passed values
 void increment(long numerator, long denominator)
          Increments the numerator and denominator by the passed values
 void setDenominatorValue(long newValue)
          Sets the value of the denominator to the passed value
 void setNumeratorValue(long newValue)
          Sets the value of the numerator to the passed value
 void setValue(long numerator, long denominator)
          Sets the values of the numerator and denominator to the passed values
 
Methods inherited from interface net.sf.ehcache.util.counter.sampled.SampledCounter
getAllSampleValues, getAndReset, getMostRecentSample, shutdown
 
Methods inherited from interface net.sf.ehcache.util.counter.Counter
decrement, decrement, getAndSet, getValue, increment, increment, setValue
 

Method Detail

increment

void increment(long numerator,
               long denominator)
Increments the numerator and denominator by the passed values

Parameters:
numerator -
denominator -

decrement

void decrement(long numerator,
               long denominator)
Decrements the numerator and denominator by the passed values

Parameters:
numerator -
denominator -

setValue

void setValue(long numerator,
              long denominator)
Sets the values of the numerator and denominator to the passed values

Parameters:
numerator -
denominator -

setNumeratorValue

void setNumeratorValue(long newValue)
Sets the value of the numerator to the passed value

Parameters:
newValue -

setDenominatorValue

void setDenominatorValue(long newValue)
Sets the value of the denominator to the passed value

Parameters:
newValue -

ehcache

Copyright 2001-2015, Terracotta, Inc.