Package io.split.client.metrics
Class CachedMetrics
- java.lang.Object
-
- io.split.client.metrics.CachedMetrics
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.split.engine.metrics.Metrics
Metrics.NoopMetrics
-
-
Constructor Summary
Constructors Constructor Description CachedMetrics(DTOMetrics httpMetrics, long refreshPeriodInMillis)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
CachedMetrics
public CachedMetrics(DTOMetrics httpMetrics, long refreshPeriodInMillis)
-
-
Method Detail
-
count
public void count(String counter, long delta)
Description copied from interface:MetricsAdjusts the specified counter by a given delta.This method is is non-blocking and is guaranteed not to throw an exception.
-
-