public class SupplierMetric<T> extends AbstractExecutionMetric
name| Constructor and Description |
|---|
SupplierMetric(org.springframework.boot.actuate.metrics.GaugeService gaugeService,
org.springframework.boot.actuate.metrics.CounterService counterService,
java.lang.String name) |
SupplierMetric(org.springframework.boot.actuate.metrics.GaugeService gaugeService,
org.springframework.boot.actuate.metrics.CounterService counterService,
java.lang.String name,
org.slf4j.Logger logger,
org.springframework.boot.logging.LogLevel logLevel) |
| Modifier and Type | Method and Description |
|---|---|
T |
measure(java.util.function.Supplier<T> supplier) |
finish, start, submitpublic SupplierMetric(org.springframework.boot.actuate.metrics.GaugeService gaugeService,
org.springframework.boot.actuate.metrics.CounterService counterService,
java.lang.String name)
public SupplierMetric(org.springframework.boot.actuate.metrics.GaugeService gaugeService,
org.springframework.boot.actuate.metrics.CounterService counterService,
java.lang.String name,
org.slf4j.Logger logger,
org.springframework.boot.logging.LogLevel logLevel)