Package io.split.client.metrics
Class FireAndForgetMetrics
- java.lang.Object
-
- io.split.client.metrics.FireAndForgetMetrics
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.split.engine.metrics.Metrics
Metrics.NoopMetrics
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcount(String counter, long delta)Adjusts the specified counter by a given delta.static FireAndForgetMetricsinstance(Metrics delegate, int numberOfThreads, int queueSize)voidtime(String operation, long timeInMs)Records an execution time in milliseconds for the specified named operation.
-
-
-
Method Detail
-
instance
public static FireAndForgetMetrics instance(Metrics delegate, int numberOfThreads, int queueSize)
-
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.
-
time
public void time(String operation, long timeInMs)
Description copied from interface:MetricsRecords an execution time in milliseconds for the specified named operation.This method is non-blocking and is guaranteed not to throw an exception.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-