Counter.Key
Modifier and Type | Field and Description |
---|---|
protected ReadWriteLock |
lock |
protected OptimizedStatistics |
statistics |
Constructor and Description |
---|
DefaultCounter(Counter.Key key,
CounterDataStore store) |
DefaultCounter(Counter.Key key,
CounterDataStore store,
OptimizedStatistics statistics) |
Modifier and Type | Method and Description |
---|---|
void |
add(double delta) |
void |
add(double delta,
Unit deltaUnit) |
void |
addInternal(double delta) |
AtomicInteger |
currentConcurrency() |
boolean |
equals(Object o) |
long |
getHits() |
ObjectName |
getJmx() |
Counter.Key |
getKey() |
ReadWriteLock |
getLock() |
double |
getMax() |
int |
getMaxConcurrency() |
double |
getMean() |
double |
getMin() |
double |
getSecondMoment() |
double |
getStandardDeviation() |
OptimizedStatistics |
getStatistics() |
double |
getSum() |
double |
getVariance() |
int |
hashCode() |
void |
reset() |
void |
setJmx(ObjectName jmx) |
String |
toString() |
void |
updateConcurrency(int concurrency) |
protected final OptimizedStatistics statistics
protected final ReadWriteLock lock
public DefaultCounter(Counter.Key key, CounterDataStore store)
public DefaultCounter(Counter.Key key, CounterDataStore store, OptimizedStatistics statistics)
public void addInternal(double delta)
public void updateConcurrency(int concurrency)
updateConcurrency
in interface Counter
public int getMaxConcurrency()
getMaxConcurrency
in interface Counter
public AtomicInteger currentConcurrency()
currentConcurrency
in interface Counter
public Counter.Key getKey()
public double getStandardDeviation()
getStandardDeviation
in interface Counter
public double getVariance()
getVariance
in interface Counter
public double getSecondMoment()
getSecondMoment
in interface Counter
public OptimizedStatistics getStatistics()
public ReadWriteLock getLock()
public void setJmx(ObjectName jmx)
public ObjectName getJmx()
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.