Package org.redisson.spring.cache
Class RedissonCacheMetrics
java.lang.Object
io.micrometer.core.instrument.binder.cache.CacheMeterBinder
org.redisson.spring.cache.RedissonCacheMetrics
- All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder
public class RedissonCacheMetrics
extends io.micrometer.core.instrument.binder.cache.CacheMeterBinder
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionRedissonCacheMetrics(RedissonCache cache, Iterable<io.micrometer.core.instrument.Tag> tags) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry) protected Longprotected longhitCount()protected Longstatic RedissonCachemonitor(io.micrometer.core.instrument.MeterRegistry registry, RedissonCache cache, Iterable<io.micrometer.core.instrument.Tag> tags) Record metrics on a Redisson cache.protected longputCount()protected Longsize()Methods inherited from class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
bindTo, getCache, getTagsWithCacheName
-
Constructor Details
-
RedissonCacheMetrics
-
-
Method Details
-
monitor
public static RedissonCache monitor(io.micrometer.core.instrument.MeterRegistry registry, RedissonCache cache, Iterable<io.micrometer.core.instrument.Tag> tags) Record metrics on a Redisson cache.- Parameters:
registry- - registry to bind metrics tocache- - cache to instrumenttags- - tags to apply to all recorded metrics- Returns:
- cache
-
size
- Specified by:
sizein classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
hitCount
protected long hitCount()- Specified by:
hitCountin classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
missCount
- Specified by:
missCountin classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
evictionCount
- Specified by:
evictionCountin classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
putCount
protected long putCount()- Specified by:
putCountin classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-
bindImplementationSpecificMetrics
protected void bindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry) - Specified by:
bindImplementationSpecificMetricsin classio.micrometer.core.instrument.binder.cache.CacheMeterBinder
-