public final class JMSReader
extends java.lang.Object
Constructor and Description |
---|
JMSReader(java.lang.String jmsProviderUrl,
java.lang.String jmsDestination,
java.lang.String jmsFactoryLookupName,
java.util.function.Consumer<IMonitoringRecord> elementReceivedCallback)
Creates a new logic module for the Consumer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
read()
Starts the reader.
|
void |
terminate()
Terminates the reader logic and returns iff termination was successful.
|
public JMSReader(java.lang.String jmsProviderUrl, java.lang.String jmsDestination, java.lang.String jmsFactoryLookupName, java.util.function.Consumer<IMonitoringRecord> elementReceivedCallback) throws java.lang.IllegalArgumentException
jmsProviderUrl
- The name of the configuration determining the JMS provider URL,
e.g. tcp://localhost:3035/
jmsDestination
- The name of the configuration determining the JMS destination,
e.g. queue1
.jmsFactoryLookupName
- The name of the configuration determining the name of the used JMS
factory, e.g. org.exolab.jms.jndi.InitialContextFactory
.elementReceivedCallback
- The actual teetime stage which uses this class.java.lang.IllegalArgumentException
- If one of the properties is empty.public boolean read()
terminate()
method can be used
to initiate the termination of this method.public void terminate()
Copyright 2020 Kieker Project, http://kieker-monitoring.net