SampledRateCounter (Quartz Parent POM 2.0.1 API)

Quartz Java



org.quartz.utils.counter.sampled Interface SampledRateCounter

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

public interface SampledRateCounter
extends SampledCounter

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

Since:
1.8
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 org.quartz.utils.counter.sampled.SampledCounter
getAllSampleValues, getAndReset, getMostRecentSample, shutdown
 
Methods inherited from interface org.quartz.utils.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 -


Copyright 2001-2011, Terracotta, Inc.