public final class DefaultRegistry extends AbstractRegistry
logger
Constructor and Description |
---|
DefaultRegistry()
Create a new instance.
|
DefaultRegistry(Clock clock)
Create a new instance.
|
DefaultRegistry(Clock clock,
RegistryConfig config)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected Counter |
newCounter(Id id)
Create a new counter instance for a given id.
|
protected DistributionSummary |
newDistributionSummary(Id id)
Create a new distribution summary instance for a given id.
|
protected Gauge |
newGauge(Id id)
Create a new gauge instance for a given id.
|
protected Gauge |
newMaxGauge(Id id)
Create a new max gauge instance for a given id.
|
protected Timer |
newTimer(Id id)
Create a new timer instance for a given id.
|
void |
reset()
Reset the state of this registry.
|
clock, config, counter, createId, createId, distributionSummary, gauge, get, getOrCreate, iterator, maxGauge, register, removeExpiredMeters, spliterator, state, timer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collectionSize, collectionSize, counter, counter, counter, counters, createId, createId, distributionSummaries, distributionSummary, distributionSummary, distributionSummary, gauge, gauge, gauge, gauge, gauge, gauge, gauge, gauge, gauges, longTaskTimer, longTaskTimer, longTaskTimer, longTaskTimer, mapSize, mapSize, maxGauge, maxGauge, maxGauge, measurements, methodValue, methodValue, propagate, propagate, stream, timer, timer, timer, timers, underlying
public DefaultRegistry()
public DefaultRegistry(Clock clock)
public DefaultRegistry(Clock clock, RegistryConfig config)
protected Counter newCounter(Id id)
AbstractRegistry
newCounter
in class AbstractRegistry
id
- Identifier used to lookup this meter in the registry.protected DistributionSummary newDistributionSummary(Id id)
AbstractRegistry
newDistributionSummary
in class AbstractRegistry
id
- Identifier used to lookup this meter in the registry.protected Timer newTimer(Id id)
AbstractRegistry
newTimer
in class AbstractRegistry
id
- Identifier used to lookup this meter in the registry.protected Gauge newGauge(Id id)
AbstractRegistry
newGauge
in class AbstractRegistry
id
- Identifier used to lookup this meter in the registry.protected Gauge newMaxGauge(Id id)
AbstractRegistry
newMaxGauge
in class AbstractRegistry
id
- Identifier used to lookup this meter in the registry.public void reset()
reset
in class AbstractRegistry