@Service public class MetricsUtilService extends Object
| Constructor and Description |
|---|
MetricsUtilService(org.springframework.boot.actuate.metrics.dropwizard.DropwizardMetricServices metricService) |
| Modifier and Type | Method and Description |
|---|---|
static String |
binaryPrefix(long size)
Converts a given number to a string preceded by the corresponding binary International System
of Units (SI) prefix.
|
<T,E extends Exception> |
time(String metric,
ThrowingSupplier<T,E> lambda)
A helper method to time operations or errors.
|
public MetricsUtilService(org.springframework.boot.actuate.metrics.dropwizard.DropwizardMetricServices metricService)
public <T,E extends Exception> T time(String metric, ThrowingSupplier<T,E> lambda) throws E extends Exception
E extends Exceptionpublic static String binaryPrefix(long size)
Copyright © 2018 Walmart, Inc.. All rights reserved.