Class AMQPReader
java.lang.Object
kieker.analysis.generic.source.amqp.AMQPReader
public final class AMQPReader
extends java.lang.Object
Logic module for the reader stage that reads monitoring records from an AMQP queue.
- Since:
- 1.12
-
Constructor Summary
Constructors Constructor Description AMQPReader(java.lang.String uri, java.lang.String queueName, int heartbeat, java.util.function.Consumer<kieker.common.record.IMonitoringRecord> elementReceivedCallback)Creates a new logic module for an AMQP reader. -
Method Summary
Modifier and Type Method Description voiddeliverRecord(kieker.common.record.IMonitoringRecord monitoringRecord)voidinit()booleanread()voidterminate()Terminates the reader logic by returning from read method.
-
Constructor Details
-
AMQPReader
public AMQPReader(java.lang.String uri, java.lang.String queueName, int heartbeat, java.util.function.Consumer<kieker.common.record.IMonitoringRecord> elementReceivedCallback)Creates a new logic module for an AMQP reader.- Parameters:
uri- The name of the configuration property for the server URI.queueName- The name of the configuration property for the AMQP queue name.heartbeat- The name of the configuration property for the heartbeat timeout.elementReceivedCallback- The actual teetime stage which uses this class.
-
-
Method Details
-
init
public void init() -
read
public boolean read() -
terminate
public void terminate()Terminates the reader logic by returning from read method. -
deliverRecord
public void deliverRecord(kieker.common.record.IMonitoringRecord monitoringRecord)
-