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, state, timerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcollectionSize, 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, underlyingforEach, spliteratorpublic DefaultRegistry()
public DefaultRegistry(Clock clock)
public DefaultRegistry(Clock clock, RegistryConfig config)
protected Counter newCounter(Id id)
AbstractRegistrynewCounter in class AbstractRegistryid - Identifier used to lookup this meter in the registry.protected DistributionSummary newDistributionSummary(Id id)
AbstractRegistrynewDistributionSummary in class AbstractRegistryid - Identifier used to lookup this meter in the registry.protected Timer newTimer(Id id)
AbstractRegistrynewTimer in class AbstractRegistryid - Identifier used to lookup this meter in the registry.protected Gauge newGauge(Id id)
AbstractRegistrynewGauge in class AbstractRegistryid - Identifier used to lookup this meter in the registry.protected Gauge newMaxGauge(Id id)
AbstractRegistrynewMaxGauge in class AbstractRegistryid - Identifier used to lookup this meter in the registry.public void reset()
reset in class AbstractRegistry