Class AbstractActiveMQConsumerResource

All Implemented Interfaces:
TestRule
Direct Known Subclasses:
ActiveMQQueueReceiverResource, ActiveMQTopicDurableSubscriberResource, ActiveMQTopicSubscriberResource

public abstract class AbstractActiveMQConsumerResource extends AbstractActiveMQClientResource
  • Constructor Details

    • AbstractActiveMQConsumerResource

      public AbstractActiveMQConsumerResource(String destinationName, org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
    • AbstractActiveMQConsumerResource

      public AbstractActiveMQConsumerResource(String destinationName, URI brokerURI)
    • AbstractActiveMQConsumerResource

      public AbstractActiveMQConsumerResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker)
    • AbstractActiveMQConsumerResource

      public AbstractActiveMQConsumerResource(String destinationName, URI brokerURI, String userName, String password)
  • Method Details

    • getDefaultReceiveTimout

      public long getDefaultReceiveTimout()
    • setDefaultReceiveTimout

      public void setDefaultReceiveTimout(long defaultReceiveTimout)
    • createClient

      protected void createClient() throws jakarta.jms.JMSException
      Specified by:
      createClient in class AbstractActiveMQClientResource
      Throws:
      jakarta.jms.JMSException
    • receiveBytesMessage

      public jakarta.jms.BytesMessage receiveBytesMessage() throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • receiveTextMessage

      public jakarta.jms.TextMessage receiveTextMessage() throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • receiveMapMessage

      public jakarta.jms.MapMessage receiveMapMessage() throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • receiveObjectMessage

      public jakarta.jms.ObjectMessage receiveObjectMessage() throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • receiveBytesMessage

      public jakarta.jms.BytesMessage receiveBytesMessage(long timeout) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • receiveTextMessage

      public jakarta.jms.TextMessage receiveTextMessage(long timeout) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • receiveMapMessage

      public jakarta.jms.MapMessage receiveMapMessage(long timeout) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • receiveObjectMessage

      public jakarta.jms.ObjectMessage receiveObjectMessage(long timeout) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • receiveMessage

      public jakarta.jms.Message receiveMessage() throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • receiveMessage

      public jakarta.jms.Message receiveMessage(long timeout) throws jakarta.jms.JMSException
      Receive a message with the given timeout
      Parameters:
      timeout -
      Returns:
      Throws:
      jakarta.jms.JMSException