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 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 the MeterBinder managing the specified Cache or null if the specified Cache is not supported.
      Specified by:
      getMeterBinder in interface CacheMeterBinderProvider<CaffeineCache>
      Parameters:
      cache - the cache to instrument
      tags - tags to apply to all recorded metrics
      Returns:
      a MeterBinder handling the specified Cache or null