Metrics.NoopMetrics| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
count(String counter,
long delta)
Adjusts the specified counter by a given delta.
|
static FireAndForgetMetrics |
instance(Metrics delegate,
int numberOfThreads,
int queueSize) |
void |
time(String operation,
long timeInMs)
Records an execution time in milliseconds for the specified named operation.
|
public static FireAndForgetMetrics instance(Metrics delegate, int numberOfThreads, int queueSize)
public void count(String counter, long delta)
MetricsThis method is is non-blocking and is guaranteed not to throw an exception.
public void time(String operation, long timeInMs)
MetricsThis method is non-blocking and is guaranteed not to throw an exception.
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2019. All rights reserved.