接口 CacheMeterBinderProvider<C extends Cache>

类型参数:
C - the cache type
所有已知实现类:
Cache2kCacheMeterBinderProvider, CaffeineCacheMeterBinderProvider, HazelcastCacheMeterBinderProvider, JCacheCacheMeterBinderProvider, RedisCacheMeterBinderProvider
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface CacheMeterBinderProvider<C extends Cache>
Provide a MeterBinder based on a Cache.
从以下版本开始:
2.0.0
作者:
Stephane Nicoll
  • 方法概要

    修饰符和类型
    方法
    说明
    io.micrometer.core.instrument.binder.MeterBinder
    getMeterBinder(C cache, Iterable<io.micrometer.core.instrument.Tag> tags)
    Return the MeterBinder managing the specified Cache or null if the specified Cache is not supported.
  • 方法详细资料

    • getMeterBinder

      io.micrometer.core.instrument.binder.MeterBinder getMeterBinder(C cache, Iterable<io.micrometer.core.instrument.Tag> tags)
      Return the MeterBinder managing the specified Cache or null if the specified Cache is not supported.
      参数:
      cache - the cache to instrument
      tags - tags to apply to all recorded metrics
      返回:
      a MeterBinder handling the specified Cache or null