Class Cache2kCacheMeterBinderProvider
java.lang.Object
org.springframework.boot.actuate.metrics.cache.Cache2kCacheMeterBinderProvider
- All Implemented Interfaces:
CacheMeterBinderProvider<org.cache2k.extra.spring.SpringCache2kCache>
public class Cache2kCacheMeterBinderProvider
extends Object
implements CacheMeterBinderProvider<org.cache2k.extra.spring.SpringCache2kCache>
CacheMeterBinderProvider
implementation for cache2k.- Since:
- 2.7.0
- Author:
- Jens Wilke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.core.instrument.binder.MeterBinder
getMeterBinder
(org.cache2k.extra.spring.SpringCache2kCache cache, Iterable<io.micrometer.core.instrument.Tag> tags)
-
Constructor Details
-
Cache2kCacheMeterBinderProvider
public Cache2kCacheMeterBinderProvider()
-
-
Method Details
-
getMeterBinder
public io.micrometer.core.instrument.binder.MeterBinder getMeterBinder(org.cache2k.extra.spring.SpringCache2kCache 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.cache2k.extra.spring.SpringCache2kCache>
- Parameters:
cache
- the cache to instrumenttags
- tags to apply to all recorded metrics- Returns:
- a
MeterBinder
handling the specifiedCache
ornull
-