| Modifier and Type | Field and Description |
|---|---|
| protected final ExtendedStatistics. | rate
The rate. |
| Access | Constructor and Description |
|---|---|
| public | SampledCounterProxy(ExtendedStatistics.
the rate rateInstantiates a new sampled counter proxy. |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long | decrement(long amount)
Implements net. |
| public TimeStampedCounterValue[] | getAllSampleValues()
Implements net. |
| public long | getAndReset()
Implements net. |
| public long | getAndSet(long newValue)
Implements net. |
| public TimeStampedCounterValue | getMostRecentSample()
Implements net. |
| public long | getValue()
Implements net. |
| public long | |
| public long | increment(long amount)
Implements net. |
| public void | setValue(long newValue)
Implements net. |
| public void | shutdown()
Implements net. |
| protected TimeStampedCounterValue[] |
| rate | back to summary |
|---|---|
| protected final ExtendedStatistics. The rate. | |
| SampledCounterProxy | back to summary |
|---|---|
| public SampledCounterProxy(ExtendedStatistics. Instantiates a new sampled counter proxy.
| |
| decrement | back to summary |
|---|---|
| public long decrement() Implements net. Doc from net. Decrement the counter by 1
| |
| decrement | back to summary |
|---|---|
| public long decrement(long amount) Implements net. Doc from net. Decrement the counter by given amount
| |
| getAllSampleValues | back to summary |
|---|---|
| public TimeStampedCounterValue[] getAllSampleValues() Implements net. Doc from net. Returns all samples in history
| |
| getAndReset | back to summary |
|---|---|
| public long getAndReset() 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) Implements net. Doc from net. Returns the value of the counter and sets it to the new value
| |
| getMostRecentSample | back to summary |
|---|---|
| public TimeStampedCounterValue getMostRecentSample() Implements net. Doc from net. Returns the most recent sampled value
| |
| getValue | back to summary |
|---|---|
| public long getValue() Implements net. Doc from net. Gets current value of the counter
| |
| increment | back to summary |
|---|---|
| public long increment() Implements net. Doc from net. Increment the counter by 1
| |
| increment | back to summary |
|---|---|
| public long increment(long amount) Implements net. Doc from net. Increment the counter by given amount
| |
| setValue | back to summary |
|---|---|
| public void setValue(long newValue) Implements net. Doc from net. Sets the value of the counter to the supplied value
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Implements net. Doc from net. Shutdown this counter
| |
| sortAndPresent | back to summary |
|---|---|
| protected TimeStampedCounterValue[] sortAndPresent(List<TimeStampedCounterValue> arr) Sort and present the List of values | |