Class RedisCacheMeterBinderProvider
java.lang.Object
org.springframework.boot.actuate.metrics.cache.RedisCacheMeterBinderProvider
- All Implemented Interfaces:
CacheMeterBinderProvider<org.springframework.data.redis.cache.RedisCache>
public class RedisCacheMeterBinderProvider
extends Object
implements CacheMeterBinderProvider<org.springframework.data.redis.cache.RedisCache>
CacheMeterBinderProvider
implementation for Redis.- Since:
- 2.4.0
- Author:
- Stephane Nicoll
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.core.instrument.binder.MeterBinder
getMeterBinder
(org.springframework.data.redis.cache.RedisCache cache, Iterable<io.micrometer.core.instrument.Tag> tags)
-
Constructor Details
-
RedisCacheMeterBinderProvider
public RedisCacheMeterBinderProvider()
-
-
Method Details
-
getMeterBinder
public io.micrometer.core.instrument.binder.MeterBinder getMeterBinder(org.springframework.data.redis.cache.RedisCache cache, Iterable<io.micrometer.core.instrument.Tag> tags) Description copied from interface:CacheMeterBinderProvider
Return theMeterBinder
managing the specifiedCache
ornull
if the specifiedCache
is not supported.- Specified by:
getMeterBinder
in interfaceCacheMeterBinderProvider<org.springframework.data.redis.cache.RedisCache>
- Parameters:
cache
- the cache to instrumenttags
- tags to apply to all recorded metrics- Returns:
- a
MeterBinder
handling the specifiedCache
ornull
-