Interface CacheMeterBinderProvider<C extends Cache>
- Type Parameters:
C
- the cache type
- All Known Implementing Classes:
Cache2kCacheMeterBinderProvider
,CaffeineCacheMeterBinderProvider
,HazelcastCacheMeterBinderProvider
,JCacheCacheMeterBinderProvider
,RedisCacheMeterBinderProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provide a
MeterBinder
based on a Cache
.- Since:
- 2.0.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.core.instrument.binder.MeterBinder
getMeterBinder
(C cache, Iterable<io.micrometer.core.instrument.Tag> tags)
-
Method Details
-
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
-