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