public final class NoopRegistry extends Object implements Registry
| Constructor and Description |
|---|
NoopRegistry() |
| Modifier and Type | Method and Description |
|---|---|
Clock |
clock()
The clock used by the registry for timing events.
|
Counter |
counter(DynamicId id)
Measures the rate of some activity.
|
Counter |
counter(Id id)
Measures the rate of some activity.
|
DynamicId |
createDynamicId(String name)
Creates a dynamic identifier for a meter.
|
DynamicId |
createDynamicId(String name,
Iterable<TagFactory> tagFactories)
Creates a dynamic identifier for a meter.
|
Id |
createId(String name)
Creates an identifier for a meter.
|
Id |
createId(String name,
Iterable<Tag> tags)
Creates an identifier for a meter.
|
DistributionSummary |
distributionSummary(DynamicId id)
Measures the rate and variation in amount for some activity.
|
DistributionSummary |
distributionSummary(Id id)
Measures the rate and variation in amount for some activity.
|
Meter |
get(Id id)
Returns the meter associated with a given id.
|
Iterator<Meter> |
iterator()
Iterator for traversing the set of meters in the registry.
|
void |
register(Meter meter)
Add a custom meter to the registry.
|
Timer |
timer(DynamicId id)
Measures the rate and time taken for short running tasks.
|
Timer |
timer(Id id)
Measures the rate and time taken for short running tasks.
|
clone, 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, longTaskTimer, longTaskTimer, longTaskTimer, longTaskTimer, mapSize, mapSize, methodValue, methodValue, stream, timer, timer, timer, timers, underlyingforEach, spliteratorpublic Clock clock()
Registrypublic Id createId(String name)
Registrypublic Id createId(String name, Iterable<Tag> tags)
Registrypublic DynamicId createDynamicId(String name)
RegistrycreateDynamicId in interface Registryname - Description of the measurement that is being collected.public DynamicId createDynamicId(String name, Iterable<TagFactory> tagFactories)
RegistrycreateDynamicId in interface Registryname - Description of the measurement that is being collected.tagFactories - Other factories that can generate other dimensions that can be used to classify the measurement.public void register(Meter meter)
Registrypublic Counter counter(Id id)
Registrycounter in interface Registryid - Identifier created by a call to Registry.createId(java.lang.String)public Counter counter(DynamicId id)
Registrycounter in interface Registryid - Identifier created by a call to Registry.createDynamicId(java.lang.String)public DistributionSummary distributionSummary(Id id)
RegistrydistributionSummary in interface Registryid - Identifier created by a call to Registry.createId(java.lang.String)public DistributionSummary distributionSummary(DynamicId id)
RegistrydistributionSummary in interface Registryid - Identifier created by a call to Registry.createDynamicId(java.lang.String)public Timer timer(Id id)
Registrytimer in interface Registryid - Identifier created by a call to Registry.createId(java.lang.String)public Timer timer(DynamicId id)
Registrytimer in interface Registryid - Identifier created by a call to Registry.createDynamicId(java.lang.String)public Meter get(Id id)
Registry