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 CounterRegistry
public SamplingCounter newSamplingCounter(String category, String name, com.google.common.collect.ImmutableMap<String,String> tags)
newSamplingCounter
in interface CounterRegistry
public TagSetCounter newTagSetCounter(String category, String name, com.google.common.collect.ImmutableMap<String,String> tags)
newTagSetCounter
in interface CounterRegistry
public void registerCounters(Collection<Counter> countersToRegister)
registerCounters
in interface CounterRegistry
public void registerCounters(CounterRegistry.AsyncCounterRegistrationEvent event)
registerCounters
in interface CounterRegistry
public void close()
close
in interface Closeable
close
in interface AutoCloseable