public class CounterRegistryImpl extends Object implements CounterRegistry
CounterRegistry.AsyncCounterRegistrationEvent| Constructor and Description |
|---|
CounterRegistryImpl(ScheduledExecutorService service,
BuckEventBus eventBus) |
CounterRegistryImpl(ScheduledExecutorService service,
BuckEventBus eventBus,
long firstFlushIntervalMillis,
long flushIntervalMillis) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IntegerCounter |
newIntegerCounter(String category,
String name,
com.google.common.collect.ImmutableMap<String,String> tags) |
SamplingCounter |
newSamplingCounter(String category,
String name,
com.google.common.collect.ImmutableMap<String,String> tags) |
TagSetCounter |
newTagSetCounter(String category,
String name,
com.google.common.collect.ImmutableMap<String,String> tags) |
void |
registerCounters(Collection<Counter> countersToRegister) |
void |
registerCounters(CounterRegistry.AsyncCounterRegistrationEvent event) |
public CounterRegistryImpl(ScheduledExecutorService service, BuckEventBus eventBus)
public CounterRegistryImpl(ScheduledExecutorService service, BuckEventBus eventBus, long firstFlushIntervalMillis, long flushIntervalMillis)
public IntegerCounter newIntegerCounter(String category, String name, com.google.common.collect.ImmutableMap<String,String> tags)
newIntegerCounter in interface CounterRegistrypublic SamplingCounter newSamplingCounter(String category, String name, com.google.common.collect.ImmutableMap<String,String> tags)
newSamplingCounter in interface CounterRegistrypublic TagSetCounter newTagSetCounter(String category, String name, com.google.common.collect.ImmutableMap<String,String> tags)
newTagSetCounter in interface CounterRegistrypublic void registerCounters(Collection<Counter> countersToRegister)
registerCounters in interface CounterRegistrypublic void registerCounters(CounterRegistry.AsyncCounterRegistrationEvent event)
registerCounters in interface CounterRegistrypublic void close()
close in interface Closeableclose in interface AutoCloseable