Package io.siddhi.core.util.statistics
Interface LatencyTracker
-
- All Known Implementing Classes:
SiddhiLatencyMetric
public interface LatencyTrackerCalculates the process latency. markIn and markOut is used to denote start and end of processing events respectively. Latency is the time gap between markIn and markOut calls of given thread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()voidmarkIn()This is to be called when starting the latency calculationvoidmarkOut()This is to be called when latency calculation should be stopped
-
-
-
Method Detail
-
markIn
void markIn()
This is to be called when starting the latency calculation
-
markOut
void markOut()
This is to be called when latency calculation should be stopped
-
getName
String getName()
- Returns:
- Name of the latency tracker
-
-