public abstract class LockableCounter extends Object implements Counter
Counter.Key
Modifier and Type | Field and Description |
---|---|
protected ReadWriteLock |
lock |
Modifier | Constructor and Description |
---|---|
protected |
LockableCounter(Counter.Key key,
CounterDataStore dataStore) |
Modifier and Type | Method and Description |
---|---|
void |
add(double delta) |
void |
add(double delta,
Unit deltaUnit) |
abstract 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() |
abstract OptimizedStatistics |
getStatistics() |
double |
getSum() |
double |
getVariance() |
int |
hashCode() |
void |
reset() |
void |
setJmx(ObjectName jmx) |
void |
updateConcurrency(int concurrency) |
protected final ReadWriteLock lock
protected LockableCounter(Counter.Key key, CounterDataStore dataStore)
public abstract void addInternal(double delta)
public abstract OptimizedStatistics getStatistics()
public Counter.Key getKey()
public void updateConcurrency(int concurrency)
updateConcurrency
in interface Counter
public int getMaxConcurrency()
getMaxConcurrency
in interface Counter
public AtomicInteger currentConcurrency()
currentConcurrency
in interface Counter
public void setJmx(ObjectName jmx)
public ObjectName getJmx()
public ReadWriteLock getLock()
public double getStandardDeviation()
getStandardDeviation
in interface Counter
public double getVariance()
getVariance
in interface Counter
public double getSecondMoment()
getSecondMoment
in interface Counter
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.