Interface CacheMeterBinderProvider<C extends org.springframework.cache.Cache>
- Type Parameters:
C
- the cache type
- All Known Implementing Classes:
CaffeineCacheMeterBinderProvider
,EhCache2CacheMeterBinderProvider
,HazelcastCacheMeterBinderProvider
,JCacheCacheMeterBinderProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CacheMeterBinderProvider<C extends org.springframework.cache.Cache>
Provide aMeterBinder
based on aCache
.- Since:
- 2.0.0
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.micrometer.core.instrument.binder.MeterBinder
getMeterBinder(C cache, Iterable<io.micrometer.core.instrument.Tag> tags)
Return theMeterBinder
managing the specifiedCache
ornull
if the specifiedCache
is not supported.
Method Detail
getMeterBinder
io.micrometer.core.instrument.binder.MeterBinder getMeterBinder(C cache, Iterable<io.micrometer.core.instrument.Tag> tags)
Return theMeterBinder
managing the specifiedCache
ornull
if the specifiedCache
is not supported.- Parameters:
cache
- the cache to instrumenttags
- tags to apply to all recorded metrics- Returns:
- a
MeterBinder
handling the specifiedCache
ornull