Package io.split.engine.metrics
Interface Metrics
-
- All Known Implementing Classes:
CachedMetrics,FireAndForgetMetrics,HttpMetrics,Metrics.NoopMetrics
public interface MetricsThis interface is a briefer version of StatsD interface- Author:
- adil
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMetrics.NoopMetrics
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcount(String counter, long delta)Adjusts the specified counter by a given delta.voidtime(String operation, long timeInMs)Records an execution time in milliseconds for the specified named operation.
-
-
-
Method Detail
-
count
void count(String counter, long delta)
Adjusts the specified counter by a given delta.This method is is non-blocking and is guaranteed not to throw an exception.
- Parameters:
counter- the name of the counter to adjustdelta- the amount to adjust the counter by
-
time
void time(String operation, long timeInMs)
Records an execution time in milliseconds for the specified named operation.This method is non-blocking and is guaranteed not to throw an exception.
- Parameters:
operation- the name of the timed operationtimeInMs- the time in milliseconds
-
-