Class InfinispanCacheMeterBinder<K,V>

java.lang.Object
io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.infinispan.Cache<K,V>>
org.infinispan.spring.starter.embedded.actuator.InfinispanCacheMeterBinder<K,V>
All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder

public class InfinispanCacheMeterBinder<K,V> extends io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.infinispan.Cache<K,V>>
Implements CacheMeterBinder to expose Infinispan embedded metrics
Since:
2.1
Author:
Katia Aresti, karesti@redhat.com
  • Constructor Details

    • InfinispanCacheMeterBinder

      public InfinispanCacheMeterBinder(org.infinispan.Cache cache, Iterable<io.micrometer.core.instrument.Tag> tags)
  • Method Details

    • size

      protected Long size()
      Specified by:
      size in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.infinispan.Cache<K,V>>
    • hitCount

      protected long hitCount()
      Specified by:
      hitCount in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.infinispan.Cache<K,V>>
    • missCount

      protected Long missCount()
      Specified by:
      missCount in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.infinispan.Cache<K,V>>
    • evictionCount

      protected Long evictionCount()
      Specified by:
      evictionCount in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.infinispan.Cache<K,V>>
    • putCount

      protected long putCount()
      Specified by:
      putCount in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.infinispan.Cache<K,V>>
    • bindImplementationSpecificMetrics

      protected void bindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry)
      Specified by:
      bindImplementationSpecificMetrics in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.infinispan.Cache<K,V>>