@UsesJava8 public class BufferCounterService extends Object implements CounterService
CounterService
using CounterBuffers
.Constructor and Description |
---|
BufferCounterService(CounterBuffers buffers)
Create a
BufferCounterService instance. |
Modifier and Type | Method and Description |
---|---|
void |
decrement(String metricName)
Decrement the specified counter by 1.
|
void |
increment(String metricName)
Increment the specified counter by 1.
|
void |
reset(String metricName)
Reset the specified counter.
|
public BufferCounterService(CounterBuffers buffers)
BufferCounterService
instance.buffers
- the underlying buffers used to store metricspublic void increment(String metricName)
CounterService
increment
in interface CounterService
metricName
- the name of the counterpublic void decrement(String metricName)
CounterService
decrement
in interface CounterService
metricName
- the name of the counterpublic void reset(String metricName)
CounterService
reset
in interface CounterService
metricName
- the name of the counterCopyright © 2017 Pivotal Software, Inc.. All rights reserved.