@NonNullApi @NonNullFields public class EhCache2Metrics extends java.lang.Object implements MeterBinder
| Constructor and Description |
|---|
EhCache2Metrics(net.sf.ehcache.Ehcache cache,
java.lang.String name,
java.lang.Iterable<Tag> tags) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindTo(MeterRegistry registry) |
static net.sf.ehcache.Ehcache |
monitor(MeterRegistry registry,
net.sf.ehcache.Ehcache cache,
java.lang.String name,
java.lang.Iterable<Tag> tags)
Record metrics on a JCache cache.
|
static net.sf.ehcache.Ehcache |
monitor(MeterRegistry registry,
net.sf.ehcache.Ehcache cache,
java.lang.String name,
java.lang.String... tags)
Record metrics on a JCache cache.
|
public EhCache2Metrics(net.sf.ehcache.Ehcache cache,
java.lang.String name,
java.lang.Iterable<Tag> tags)
public static net.sf.ehcache.Ehcache monitor(MeterRegistry registry, net.sf.ehcache.Ehcache cache, java.lang.String name, java.lang.String... tags)
registry - The registry to bind metrics to.cache - The cache to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics. Must be an even number of arguments representing key/value pairs of tags.CacheStatspublic static net.sf.ehcache.Ehcache monitor(MeterRegistry registry, net.sf.ehcache.Ehcache cache, java.lang.String name, java.lang.Iterable<Tag> tags)
registry - The registry to bind metrics to.cache - The cache to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.CacheStatspublic void bindTo(MeterRegistry registry)
bindTo in interface MeterBinder