Package org.apache.activemq.junit
Class ActiveMQTopicDurableSubscriberResource
java.lang.Object
org.junit.rules.ExternalResource
org.apache.activemq.junit.AbstractActiveMQClientResource
org.apache.activemq.junit.AbstractActiveMQConsumerResource
org.apache.activemq.junit.ActiveMQTopicDurableSubscriberResource
- All Implemented Interfaces:
TestRule
-
Constructor Summary
ConstructorsConstructorDescriptionActiveMQTopicDurableSubscriberResource(String destinationName, URI brokerURI) ActiveMQTopicDurableSubscriberResource(String destinationName, URI brokerURI, String userName, String password) ActiveMQTopicDurableSubscriberResource(String destinationName, org.apache.activemq.ActiveMQConnectionFactory connectionFactory) ActiveMQTopicDurableSubscriberResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbytevoidsetClientId(String clientId) voidsetSubscriberName(String subscriberName) Methods inherited from class org.apache.activemq.junit.AbstractActiveMQConsumerResource
getDefaultReceiveTimout, receiveBytesMessage, receiveBytesMessage, receiveMapMessage, receiveMapMessage, receiveMessage, receiveMessage, receiveObjectMessage, receiveObjectMessage, receiveTextMessage, receiveTextMessage, setDefaultReceiveTimoutMethods inherited from class org.apache.activemq.junit.AbstractActiveMQClientResource
after, before, createBytesMessage, createDestination, createMapMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createObjectMessage, createStreamMessage, createTextMessage, getBrokerURL, getDestinationName, setMessageProperties, start, stopMethods inherited from class org.junit.rules.ExternalResource
apply
-
Constructor Details
-
ActiveMQTopicDurableSubscriberResource
public ActiveMQTopicDurableSubscriberResource(String destinationName, org.apache.activemq.ActiveMQConnectionFactory connectionFactory) -
ActiveMQTopicDurableSubscriberResource
-
ActiveMQTopicDurableSubscriberResource
public ActiveMQTopicDurableSubscriberResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker) -
ActiveMQTopicDurableSubscriberResource
-
-
Method Details
-
getDestinationType
public byte getDestinationType()- Specified by:
getDestinationTypein classAbstractActiveMQClientResource
-
createClient
protected void createClient() throws jakarta.jms.JMSException- Overrides:
createClientin classAbstractActiveMQConsumerResource- Throws:
jakarta.jms.JMSException
-
getClientId
- Overrides:
getClientIdin classAbstractActiveMQClientResource
-
setClientId
-
getSubscriberName
-
setSubscriberName
-