public class ThroughputMetric extends Metric
| Constructor and Description | 
|---|
ThroughputMetric()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(long n)
Mark the occurrence of a given number of events. 
 | 
long | 
getTotal()
Returns the total number of events marked. 
 | 
Metric | 
getTotalMetric()  | 
void | 
increment()
Mark the occurrence of an event. 
 | 
double | 
sampleThroughput()
Samples the throughput (events per second) since the previous call to sampleThroughput. 
 | 
public void increment()
public void add(long n)
n - the number of eventspublic long getTotal()
public double sampleThroughput()
public Metric getTotalMetric()
Copyright © GigaSpaces.