qpid::broker::RateTracker Class Reference

Simple rate tracker: represents some value that can be incremented, then can periodcially sample the rate of increments. More...

#include <RateTracker.h>

Collaboration diagram for qpid::broker::RateTracker:

Collaboration graph
[legend]

List of all members.

Public Member Functions

RateTrackeroperator++ ()
 Increments the count being tracked.
double sampleRatePerSecond ()
 Returns the rate of increments per second since last called.


Detailed Description

Simple rate tracker: represents some value that can be incremented, then can periodcially sample the rate of increments.

Definition at line 34 of file RateTracker.h.


Member Function Documentation

RateTracker& qpid::broker::RateTracker::operator++ (  ) 

Increments the count being tracked.

Can be called concurrently with other calls to this operator as well as with calls to sampleRatePerSecond().

double qpid::broker::RateTracker::sampleRatePerSecond (  ) 

Returns the rate of increments per second since last called.

Calls to this method should be serialised, but can be called concurrently with the increment operator


The documentation for this class was generated from the following file:

Generated on Thu Oct 16 13:38:14 2008 for Qpid by  doxygen 1.5.6