com.ibm.mq.jms

Class MQQueueReceiver

    • Method Detail

      • close

        public void close()
                   throws javax.jms.JMSException
        Closes the receiver. Releases underlying resources associated with this receiver.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface javax.jms.MessageConsumer
        Overrides:
        close in class MQMessageConsumer
        Throws:
        javax.jms.JMSException - if the operation fails
      • getQueue

        public javax.jms.Queue getQueue()
                                 throws javax.jms.JMSException
        Gets the queue associated with this queue receiver.
        Specified by:
        getQueue in interface javax.jms.QueueReceiver
        Returns:
        the queue
        Throws:
        javax.jms.JMSException - if JMS fails to get queue for this queue receiver due to some internal error
(c) Copyright IBM Corp. 2008, 2016. All Rights Reserved.