public abstract class AbstractActiveMQConsumerResource extends AbstractActiveMQClientResource
| Constructor and Description |
|---|
AbstractActiveMQConsumerResource(String destinationName,
org.apache.activemq.ActiveMQConnectionFactory connectionFactory) |
AbstractActiveMQConsumerResource(String destinationName,
EmbeddedActiveMQBroker embeddedActiveMQBroker) |
AbstractActiveMQConsumerResource(String destinationName,
URI brokerURI) |
AbstractActiveMQConsumerResource(String destinationName,
URI brokerURI,
String userName,
String password) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createClient() |
long |
getDefaultReceiveTimout() |
BytesMessage |
receiveBytesMessage() |
BytesMessage |
receiveBytesMessage(long timeout) |
MapMessage |
receiveMapMessage() |
MapMessage |
receiveMapMessage(long timeout) |
Message |
receiveMessage() |
Message |
receiveMessage(long timeout)
Receive a message with the given timeout
|
ObjectMessage |
receiveObjectMessage() |
ObjectMessage |
receiveObjectMessage(long timeout) |
TextMessage |
receiveTextMessage() |
TextMessage |
receiveTextMessage(long timeout) |
void |
setDefaultReceiveTimout(long defaultReceiveTimout) |
after, before, createBytesMessage, createDestination, createMapMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createObjectMessage, createStreamMessage, createTextMessage, getBrokerURL, getClientId, getDestinationName, getDestinationType, setMessageProperties, start, stopapplypublic AbstractActiveMQConsumerResource(String destinationName, org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
public AbstractActiveMQConsumerResource(String destinationName, URI brokerURI)
public AbstractActiveMQConsumerResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker)
public AbstractActiveMQConsumerResource(String destinationName, URI brokerURI, String userName, String password)
public long getDefaultReceiveTimout()
public void setDefaultReceiveTimout(long defaultReceiveTimout)
protected void createClient() throws JMSException
createClient in class AbstractActiveMQClientResourceJMSExceptionpublic BytesMessage receiveBytesMessage() throws JMSException
JMSExceptionpublic TextMessage receiveTextMessage() throws JMSException
JMSExceptionpublic MapMessage receiveMapMessage() throws JMSException
JMSExceptionpublic ObjectMessage receiveObjectMessage() throws JMSException
JMSExceptionpublic BytesMessage receiveBytesMessage(long timeout) throws JMSException
JMSExceptionpublic TextMessage receiveTextMessage(long timeout) throws JMSException
JMSExceptionpublic MapMessage receiveMapMessage(long timeout) throws JMSException
JMSExceptionpublic ObjectMessage receiveObjectMessage(long timeout) throws JMSException
JMSExceptionpublic Message receiveMessage() throws JMSException
JMSExceptionpublic Message receiveMessage(long timeout) throws JMSException
timeout - JMSExceptionCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.