MessageConsumer
Date: 2015-09-19

javax.jms

## Interface MessageConsumer

- All Known Subinterfaces:
    QueueReceiver, TopicSubscriber

      public interface MessageConsumer

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `MessageListener` | `getMessageListener()`
    `java.lang.String` | `getMessageSelector()`
    `Message` | `receive()`
    `Message` | `receive(long timeout)`
    `Message` | `receiveNoWait()`
    `void` | `setMessageListener(MessageListener listener)`

- - ### Method Detail

    - #### getMessageSelector

          java.lang.String getMessageSelector()
                                              throws JMSException

      Throws:
        `JMSException`

    - #### getMessageListener

          MessageListener getMessageListener()
                                             throws JMSException

      Throws:
        `JMSException`

    - #### setMessageListener

          void setMessageListener(MessageListener listener)
                                  throws JMSException

      Throws:
        `JMSException`

    - #### receive

          Message receive()
                          throws JMSException

      Throws:
        `JMSException`

    - #### receive

          Message receive(long timeout)
                          throws JMSException

      Throws:
        `JMSException`

    - #### receiveNoWait

          Message receiveNoWait()
                                throws JMSException

      Throws:
        `JMSException`

    - #### close

          void close()
                     throws JMSException

      Throws:
        `JMSException`