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