public class JmsQueueReceiver extends JmsMessageConsumer implements QueueReceiver
Constructor and Description |
---|
JmsQueueReceiver(QueueReceiver consumer,
JmsSession session)
Create a new wrapper
|
Modifier and Type | Method and Description |
---|---|
Queue |
getQueue()
Gets the
Queue associated with this queue receiver. |
close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
public JmsQueueReceiver(QueueReceiver consumer, JmsSession session)
consumer
- the queue receiversession
- the sessionpublic Queue getQueue() throws JMSException
QueueReceiver
Queue
associated with this queue receiver.getQueue
in interface QueueReceiver
Queue
JMSException
- if the JMS provider fails to get the queue for
this queue receiver
due to some internal error.Copyright © 2018 JBoss by Red Hat. All rights reserved.