Package io.split.client.metrics
Class FireAndForgetMetrics
java.lang.Object
io.split.client.metrics.FireAndForgetMetrics
- All Implemented Interfaces:
Metrics,Closeable,AutoCloseable
public class FireAndForgetMetrics extends Object implements Metrics, Closeable
Created by adilaijaz on 9/4/15.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.split.engine.metrics.Metrics
Metrics.NoopMetrics -
Method Summary
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 Details
-
instance
-
count
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
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
-