Class SiddhiThroughputMetric
- java.lang.Object
-
- io.siddhi.core.util.statistics.metrics.SiddhiThroughputMetric
-
- All Implemented Interfaces:
ThroughputTracker
public class SiddhiThroughputMetric extends Object implements ThroughputTracker
Class to calculate Siddhi throughput.
-
-
Constructor Summary
Constructors Constructor Description SiddhiThroughputMetric(String name, com.codahale.metrics.MetricRegistry metricRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideventIn()This method is to notify receive of events to calculate the throughputvoideventsIn(int eventCount)This method is to notify receive of events to calculate the throughputStringgetName()
-
-
-
Constructor Detail
-
SiddhiThroughputMetric
public SiddhiThroughputMetric(String name, com.codahale.metrics.MetricRegistry metricRegistry)
-
-
Method Detail
-
eventIn
public void eventIn()
This method is to notify receive of events to calculate the throughput- Specified by:
eventInin interfaceThroughputTracker
-
eventsIn
public void eventsIn(int eventCount)
This method is to notify receive of events to calculate the throughput- Specified by:
eventsInin interfaceThroughputTracker- Parameters:
eventCount- events passed through
-
getName
public String getName()
- Specified by:
getNamein interfaceThroughputTracker- Returns:
- Name of the memory usage tracker
-
-