public interface Metrics
| Modifier and Type | Interface and Description |
|---|---|
static class |
Metrics.NoopMetrics |
| Modifier and Type | Method and Description |
|---|---|
void |
count(String counter,
long delta)
Adjusts the specified counter by a given delta.
|
void |
time(String operation,
long timeInMs)
Records an execution time in milliseconds for the specified named operation.
|
void count(String counter, long delta)
This method is is non-blocking and is guaranteed not to throw an exception.
counter - the name of the counter to adjustdelta - the amount to adjust the counter byvoid time(String operation, long timeInMs)
This method is non-blocking and is guaranteed not to throw an exception.
operation - the name of the timed operationtimeInMs - the time in millisecondsCopyright © 2019. All rights reserved.