Class RegularRecordHandler
java.lang.Object
kieker.analysis.generic.source.amqp.RegularRecordHandler
- All Implemented Interfaces:
java.lang.Runnable
,IRecordReceivedListener
public class RegularRecordHandler extends java.lang.Object implements java.lang.Runnable, IRecordReceivedListener
Runnable to handle incoming regular records.
- Since:
- 1.12
- Author:
- Holger Knoche
-
Constructor Summary
Constructors Constructor Description RegularRecordHandler(AMQPReader readerLogic, ReaderRegistry<java.lang.String> stringRegistry)
Creates a new regular record handler. -
Method Summary
Modifier and Type Method Description void
enqueueRegularRecord(java.nio.ByteBuffer buffer)
Enqueues an unparsed regular record for processing.void
onRecordReceived(IMonitoringRecord record)
void
run()
-
Constructor Details
-
RegularRecordHandler
public RegularRecordHandler(AMQPReader readerLogic, ReaderRegistry<java.lang.String> stringRegistry)Creates a new regular record handler.- Parameters:
readerLogic
- The reader logic class to send the instantiated records tostringRegistry
- The string registry to use
-
-
Method Details
-
run
public void run()- Specified by:
run
in interfacejava.lang.Runnable
-
enqueueRegularRecord
public void enqueueRegularRecord(java.nio.ByteBuffer buffer)Enqueues an unparsed regular record for processing.- Parameters:
buffer
- The unparsed data in an appropriately positioned byte buffer
-
onRecordReceived
- Specified by:
onRecordReceived
in interfaceIRecordReceivedListener
- Parameters:
record
- record to be processed by the listener
-