public class ConcurrentMapCacheMetrics
extends io.micrometer.core.instrument.binder.cache.CacheMeterBinder
Modifier and Type | Class and Description |
---|---|
static class |
ConcurrentMapCacheMetrics.MonitoredConcurrentMapCache
A
ConcurrentMapCache wrapper that collects metrics on its use. |
Constructor and Description |
---|
ConcurrentMapCacheMetrics(org.springframework.cache.concurrent.ConcurrentMapCache cache,
java.lang.Iterable<io.micrometer.core.instrument.Tag> tags) |
Modifier and Type | Method and Description |
---|---|
protected void |
bindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry) |
protected java.lang.Long |
evictionCount() |
ConcurrentMapCacheMetrics.MonitoredConcurrentMapCache |
getMonitoredCache() |
protected long |
hitCount() |
protected java.lang.Long |
missCount() |
static org.springframework.cache.concurrent.ConcurrentMapCache |
monitor(io.micrometer.core.instrument.MeterRegistry registry,
org.springframework.cache.concurrent.ConcurrentMapCache cache,
java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)
Record metrics on a ConcurrentMapCache cache.
|
static org.springframework.cache.concurrent.ConcurrentMapCache |
monitor(io.micrometer.core.instrument.MeterRegistry registry,
org.springframework.cache.concurrent.ConcurrentMapCache cache,
java.lang.String... tags)
Record metrics on a ConcurrentMapCache cache.
|
protected long |
putCount() |
protected java.lang.Long |
size() |
public ConcurrentMapCacheMetrics(org.springframework.cache.concurrent.ConcurrentMapCache cache, java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)
public static org.springframework.cache.concurrent.ConcurrentMapCache monitor(io.micrometer.core.instrument.MeterRegistry registry, org.springframework.cache.concurrent.ConcurrentMapCache cache, java.lang.String... tags)
registry
- The registry to bind metrics to.cache
- The cache to instrument.tags
- Tags to apply to all recorded metrics. Must be an even number of arguments representing key/value pairs of tags.public static org.springframework.cache.concurrent.ConcurrentMapCache monitor(io.micrometer.core.instrument.MeterRegistry registry, org.springframework.cache.concurrent.ConcurrentMapCache cache, java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)
registry
- The registry to bind metrics to.cache
- The cache to instrument.tags
- Tags to apply to all recorded metrics.public ConcurrentMapCacheMetrics.MonitoredConcurrentMapCache getMonitoredCache()
ConcurrentMapCache
wrapper that collects metrics on its use.protected java.lang.Long size()
size
in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
protected long hitCount()
hitCount
in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
protected java.lang.Long missCount()
missCount
in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
protected java.lang.Long evictionCount()
evictionCount
in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
protected long putCount()
putCount
in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
protected void bindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry)
bindImplementationSpecificMetrics
in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder