Constructor and Description |
---|
CacheMetricsRegistrar(io.micrometer.core.instrument.MeterRegistry registry,
Collection<CacheMeterBinderProvider<?>> binderProviders)
Creates a new registrar.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bindCacheToRegistry(Cache cache,
io.micrometer.core.instrument.Tag... tags)
Attempt to bind the specified
Cache to the registry. |
protected Iterable<io.micrometer.core.instrument.Tag> |
getAdditionalTags(Cache cache)
Return additional
tags to be associated with the given Cache . |
public CacheMetricsRegistrar(io.micrometer.core.instrument.MeterRegistry registry, Collection<CacheMeterBinderProvider<?>> binderProviders)
registry
- the MeterRegistry
to usebinderProviders
- the CacheMeterBinderProvider
instances that should
be used to detect compatible cachespublic boolean bindCacheToRegistry(Cache cache, io.micrometer.core.instrument.Tag... tags)
Cache
to the registry. Return true
if
the cache is supported and was bound to the registry, false
otherwise.cache
- the cache to handletags
- the tags to associate with the metrics of that cachetrue
if the cache
is supported and was registeredCopyright © 2021 Pivotal Software, Inc.. All rights reserved.