public abstract class AbstractActiveMQClientResource extends org.junit.rules.ExternalResource
| Constructor and Description |
|---|
AbstractActiveMQClientResource(org.apache.activemq.ActiveMQConnectionFactory connectionFactory) |
AbstractActiveMQClientResource(EmbeddedActiveMQBroker embeddedActiveMQBroker) |
AbstractActiveMQClientResource(String destinationName,
org.apache.activemq.ActiveMQConnectionFactory connectionFactory) |
AbstractActiveMQClientResource(String destinationName,
EmbeddedActiveMQBroker embeddedActiveMQBroker) |
AbstractActiveMQClientResource(String destinationName,
URI brokerURI) |
AbstractActiveMQClientResource(String destinationName,
URI brokerURI,
String userName,
String password) |
AbstractActiveMQClientResource(URI brokerURI) |
AbstractActiveMQClientResource(URI brokerURI,
String userName,
String password) |
applypublic AbstractActiveMQClientResource(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
public AbstractActiveMQClientResource(URI brokerURI)
public AbstractActiveMQClientResource(EmbeddedActiveMQBroker embeddedActiveMQBroker)
public AbstractActiveMQClientResource(URI brokerURI, String userName, String password)
public AbstractActiveMQClientResource(String destinationName, org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
public AbstractActiveMQClientResource(String destinationName, URI brokerURI)
public AbstractActiveMQClientResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker)
public AbstractActiveMQClientResource(String destinationName, URI brokerURI, String userName, String password)
public static void setMessageProperties(Message message, Map<String,Object> properties) throws JMSException
JMSExceptionpublic String getClientId()
public String getDestinationName()
public abstract byte getDestinationType()
protected abstract void createClient() throws JMSException
JMSExceptionprotected void before() throws Throwable
before in class org.junit.rules.ExternalResourceThrowableprotected void after()
after in class org.junit.rules.ExternalResourcepublic void start()
public void stop()
public String getBrokerURL()
protected org.apache.activemq.command.ActiveMQDestination createDestination(String destinationName)
public BytesMessage createBytesMessage() throws JMSException
JMSExceptionpublic TextMessage createTextMessage() throws JMSException
JMSExceptionpublic MapMessage createMapMessage() throws JMSException
JMSExceptionpublic ObjectMessage createObjectMessage() throws JMSException
JMSExceptionpublic StreamMessage createStreamMessage() throws JMSException
JMSExceptionpublic BytesMessage createMessage(byte[] body) throws JMSException
JMSExceptionpublic TextMessage createMessage(String body) throws JMSException
JMSExceptionpublic MapMessage createMessage(Map<String,Object> body) throws JMSException
JMSExceptionpublic ObjectMessage createMessage(Serializable body) throws JMSException
JMSExceptionpublic BytesMessage createMessage(byte[] body, Map<String,Object> properties) throws JMSException
JMSExceptionpublic TextMessage createMessage(String body, Map<String,Object> properties) throws JMSException
JMSExceptionpublic MapMessage createMessage(Map<String,Object> body, Map<String,Object> properties) throws JMSException
JMSExceptionpublic ObjectMessage createMessage(Serializable body, Map<String,Object> properties) throws JMSException
JMSExceptionCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.