Package org.citrusframework.jms.endpoint
Class JmsTopicSubscriber
java.lang.Object
org.citrusframework.messaging.AbstractMessageConsumer
org.citrusframework.messaging.AbstractSelectiveMessageConsumer
org.citrusframework.jms.endpoint.JmsConsumer
org.citrusframework.jms.endpoint.JmsTopicSubscriber
- All Implemented Interfaces:
Runnable,org.citrusframework.messaging.Consumer,org.citrusframework.messaging.SelectiveConsumer
- Since:
- 2.7.6
- Author:
- Christoph Deppisch
-
Field Summary
Fields inherited from class org.citrusframework.jms.endpoint.JmsConsumer
endpointConfiguration -
Constructor Summary
ConstructorsConstructorDescriptionJmsTopicSubscriber(String name, JmsEndpointConfiguration endpointConfiguration, TestContextFactory testContextFactory) Default constructor using endpoint. -
Method Summary
Methods inherited from class org.citrusframework.messaging.AbstractSelectiveMessageConsumer
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, receive
-
Constructor Details
-
JmsTopicSubscriber
public JmsTopicSubscriber(String name, JmsEndpointConfiguration endpointConfiguration, TestContextFactory testContextFactory) Default constructor using endpoint.- Parameters:
name-endpointConfiguration-
-
-
Method Details
-
run
public void run()Starts consuming topic events. -
start
public void start() -
stop
public void stop() -
receive
- Specified by:
receivein interfaceorg.citrusframework.messaging.Consumer- Overrides:
receivein classorg.citrusframework.messaging.AbstractSelectiveMessageConsumer
-
receive
- Specified by:
receivein interfaceorg.citrusframework.messaging.SelectiveConsumer- Overrides:
receivein classJmsConsumer
-
isRunning
public boolean isRunning()Gets the running state.- Returns:
-