public class Meters
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Meters.Builder |
| Constructor and Description |
|---|
Meters() |
| Modifier and Type | Method and Description |
|---|---|
static Meters.Builder |
build(java.lang.String name) |
static boolean |
equals(Meter m1,
java.lang.Object o) |
static int |
hashCode(Meter m) |
static com.google.common.cache.Cache |
monitor(MeterRegistry registry,
com.google.common.cache.Cache cache,
java.lang.String name,
java.lang.Iterable<Tag> tags)
Record metrics on Guava caches.
|
static com.google.common.cache.Cache |
monitor(MeterRegistry registry,
com.google.common.cache.Cache cache,
java.lang.String name,
Tag... tags)
Record metrics on Guava caches.
|
static java.util.concurrent.ExecutorService |
monitor(MeterRegistry registry,
java.util.concurrent.ExecutorService executor,
java.lang.String name,
java.lang.Iterable<Tag> tags)
Record metrics on the use of an
ExecutorService. |
static java.util.concurrent.ExecutorService |
monitor(MeterRegistry registry,
java.util.concurrent.ExecutorService executor,
java.lang.String name,
Tag... tags)
Record metrics on the use of an
ExecutorService. |
static java.util.concurrent.Executor |
monitor(MeterRegistry registry,
java.util.concurrent.Executor executor,
java.lang.String name,
java.lang.Iterable<Tag> tags)
Record metrics on the use of an
Executor. |
static java.util.concurrent.Executor |
monitor(MeterRegistry registry,
java.util.concurrent.Executor executor,
java.lang.String name,
Tag... tags)
Record metrics on the use of an
Executor. |
public static Meters.Builder build(java.lang.String name)
public static com.google.common.cache.Cache monitor(MeterRegistry registry, com.google.common.cache.Cache cache, java.lang.String name, 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 static com.google.common.cache.Cache monitor(MeterRegistry registry, com.google.common.cache.Cache 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 static java.util.concurrent.Executor monitor(MeterRegistry registry, java.util.concurrent.Executor executor, java.lang.String name, java.lang.Iterable<Tag> tags)
Executor.registry - The registry to bind metrics to.executor - The executor to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static java.util.concurrent.Executor monitor(MeterRegistry registry, java.util.concurrent.Executor executor, java.lang.String name, Tag... tags)
Executor.registry - The registry to bind metrics to.executor - The executor to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static java.util.concurrent.ExecutorService monitor(MeterRegistry registry, java.util.concurrent.ExecutorService executor, java.lang.String name, java.lang.Iterable<Tag> tags)
ExecutorService.registry - The registry to bind metrics to.executor - The executor to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static java.util.concurrent.ExecutorService monitor(MeterRegistry registry, java.util.concurrent.ExecutorService executor, java.lang.String name, Tag... tags)
ExecutorService.registry - The registry to bind metrics to.executor - The executor to instrument.name - The name prefix of the metrics.tags - Tags to apply to all recorded metrics.public static boolean equals(Meter m1, java.lang.Object o)
public static int hashCode(Meter m)