| Modifier and Type | Method and Description |
|---|---|
void |
add(Registry registry)
Add a registry to the composite.
|
Clock |
clock()
The clock used by the registry for timing events.
|
Counter |
counter(Id id)
Measures the rate of some activity.
|
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(Id id)
Measures the rate and variation in amount for some activity.
|
Gauge |
gauge(Id id)
Represents a value sampled from another source.
|
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.
|
Gauge |
maxGauge(Id id)
Measures the maximum value recorded since the last reset.
|
void |
register(Meter meter)
Register a passive gauge.
|
void |
remove(Registry registry)
Remove a registry from the composite.
|
void |
removeAll()
Remove all registries from the composite.
|
ConcurrentMap<Id,Object> |
state()
Returns a map that can be used to associate state with the registry.
|
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, config, 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 void add(Registry registry)
public void remove(Registry registry)
public void removeAll()
public Clock clock()
Registrypublic Id createId(String name)
Registrypublic Id createId(String name, Iterable<Tag> tags)
Registrypublic void register(Meter meter)
Registryregister in interface RegistryRegistry.gauge(Id, Number),
Registry.gauge(Id, Object, ToDoubleFunction),
Registry.collectionSize(Id, Collection),
Registry.mapSize(Id, Map)public ConcurrentMap<Id,Object> state()
RegistryLongTaskTimer.public Counter counter(Id id)
Registrycounter in interface Registryid - Identifier created by a call to Registry.createId(java.lang.String)public DistributionSummary distributionSummary(Id id)
RegistrydistributionSummary in interface Registryid - Identifier created by a call to Registry.createId(java.lang.String)public Timer timer(Id id)
Registrytimer in interface Registryid - Identifier created by a call to Registry.createId(java.lang.String)public Gauge gauge(Id id)
RegistryGauge.set(double).
Registry implementations are free to expire the gauge if it has not been updated in the
last minute. If you do not want to worry about the sampling, then use PolledMeter
instead.gauge in interface Registryid - Identifier created by a call to Registry.createId(java.lang.String)public Gauge maxGauge(Id id)
RegistryRegistry.distributionSummary(Id) which provides a max along with other stats for most
registry implementations.maxGauge in interface Registryid - Identifier created by a call to Registry.createId(java.lang.String)public Meter get(Id id)
Registry