SampledRateCounter
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private long | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| denominatorValue | back to summary |
|---|---|
| private long denominatorValue | |
| numeratorValue | back to summary |
|---|---|
| private long numeratorValue | |
| OPERATION_NOT_SUPPORTED_MSG | back to summary |
|---|---|
| private static final String OPERATION_NOT_SUPPORTED_MSG | |
| SampledRateCounterImpl | back to summary |
|---|---|
| public SampledRateCounterImpl(SampledRateCounterConfig config) Constructor accepting the config | |
| decrement | back to summary |
|---|---|
| public synchronized void decrement(long numerator, long denominator) Implements net. Doc from net. Decrements the numerator and denominator by the passed values | |
| decrement | back to summary |
|---|---|
| public long decrement() Overrides net. Implements net. throws
| |
| decrement | back to summary |
|---|---|
| public long decrement(long amount) Overrides net. Implements net. throws
| |
| getAndReset | back to summary |
|---|---|
| public synchronized long getAndReset() Overrides net. Implements net. Doc from net. Returns the current value of the counter and resets it to 0
| |
| getAndSet | back to summary |
|---|---|
| public long getAndSet(long newValue) Overrides net. Implements net. throws
| |
| getMaxValue | back to summary |
|---|---|
| public long getMaxValue() | |
| getMinValue | back to summary |
|---|---|
| public long getMinValue() | |
| getValue | back to summary |
|---|---|
| public synchronized long getValue() Overrides net. Implements net. Doc from net. Gets current value of the counter
| |
| increment | back to summary |
|---|---|
| public synchronized void increment(long numerator, long denominator) Implements net. Doc from net. Increments the numerator and denominator by the passed values | |
| increment | back to summary |
|---|---|
| public long increment() Overrides net. Implements net. throws
| |
| increment | back to summary |
|---|---|
| public long increment(long amount) Overrides net. Implements net. throws
| |
| setDenominatorValue | back to summary |
|---|---|
| public synchronized void setDenominatorValue(long newValue) Implements net. Doc from net. Sets the value of the denominator to the passed value | |
| setNumeratorValue | back to summary |
|---|---|
| public synchronized void setNumeratorValue(long newValue) Implements net. Doc from net. Sets the value of the numerator to the passed value | |
| setValue | back to summary |
|---|---|
| public synchronized void setValue(long numerator, long denominator) Implements net. Doc from net. Sets the values of the numerator and denominator to the passed values | |
| setValue | back to summary |
|---|---|
| public synchronized void setValue(long newValue) Overrides net. Implements net. throws
| |