Package io.micrometer.spring.cache
Class EhCache2CacheMeterBinderProvider
- java.lang.Object
-
- io.micrometer.spring.cache.EhCache2CacheMeterBinderProvider
-
- All Implemented Interfaces:
CacheMeterBinderProvider<org.springframework.cache.ehcache.EhCacheCache>
public class EhCache2CacheMeterBinderProvider extends java.lang.Object implements CacheMeterBinderProvider<org.springframework.cache.ehcache.EhCacheCache>
CacheMeterBinderProvider
implementation for EhCache2.- Since:
- 1.2.0
-
-
Constructor Summary
Constructors Constructor Description EhCache2CacheMeterBinderProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micrometer.core.instrument.binder.MeterBinder
getMeterBinder(org.springframework.cache.ehcache.EhCacheCache cache, java.lang.Iterable<io.micrometer.core.instrument.Tag> tags)
Return theMeterBinder
managing the specifiedCache
ornull
if the specifiedCache
is not supported.
-
-
-
Method Detail
-
getMeterBinder
public io.micrometer.core.instrument.binder.MeterBinder getMeterBinder(org.springframework.cache.ehcache.EhCacheCache cache, java.lang.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.cache.ehcache.EhCacheCache>
- Parameters:
cache
- the cache to instrumenttags
- tags to apply to all recorded metrics- Returns:
- a
MeterBinder
handling the specifiedCache
ornull
-
-