Package org.citrusframework.jms.endpoint
Class JmsSyncConsumer
java.lang.Object
org.citrusframework.messaging.AbstractMessageConsumer
org.citrusframework.messaging.AbstractSelectiveMessageConsumer
org.citrusframework.jms.endpoint.JmsConsumer
org.citrusframework.jms.endpoint.JmsSyncConsumer
- All Implemented Interfaces:
org.citrusframework.messaging.Consumer,org.citrusframework.messaging.Producer,org.citrusframework.messaging.ReplyProducer,org.citrusframework.messaging.SelectiveConsumer
public class JmsSyncConsumer
extends JmsConsumer
implements org.citrusframework.messaging.ReplyProducer
- Since:
- 1.4
- Author:
- Christoph Deppisch
-
Constructor Summary
ConstructorsConstructorDescriptionJmsSyncConsumer(String name, JmsSyncEndpointConfiguration endpointConfiguration) Default constructor using endpoint configuration. -
Method Summary
Modifier and TypeMethodDescriptionCorrelationManager<jakarta.jms.Destination>Gets the correlation manager.receive(String selector, TestContext context, long timeout) voidsaveReplyDestination(JmsMessage jmsMessage, TestContext context) Store the reply destination either straight forward or with a given message correlation key.voidsend(Message message, TestContext context) voidsetCorrelationManager(CorrelationManager<jakarta.jms.Destination> correlationManager) Sets the correlation manager.Methods inherited from class org.citrusframework.messaging.AbstractSelectiveMessageConsumer
receive, receiveMethods inherited from class org.citrusframework.messaging.AbstractMessageConsumer
getName, receiveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.messaging.Consumer
getName, receiveMethods inherited from interface org.citrusframework.messaging.Producer
getName
-
Constructor Details
-
JmsSyncConsumer
Default constructor using endpoint configuration.- Parameters:
name-endpointConfiguration-
-
-
Method Details
-
receive
- Specified by:
receivein interfaceorg.citrusframework.messaging.SelectiveConsumer- Overrides:
receivein classJmsConsumer
-
send
- Specified by:
sendin interfaceorg.citrusframework.messaging.Producer
-
saveReplyDestination
Store the reply destination either straight forward or with a given message correlation key.- Parameters:
jmsMessage-context-
-
getCorrelationManager
Gets the correlation manager.- Returns:
-
setCorrelationManager
Sets the correlation manager.- Parameters:
correlationManager-
-