public class QueueReceiver extends MessageConsumer implements QueueReceiver
javax.jms.QueueReceiver
interface.MessageConsumer.Closer
dest, noLocal, queueMode, selector, sess, targetName
Constructor and Description |
---|
QueueReceiver(QueueSession sess,
Destination queue,
String selector)
Constructs a receiver.
|
Modifier and Type | Method and Description |
---|---|
Queue |
getQueue()
API method.
|
String |
toString()
Returns a string view of this receiver.
|
checkClosed, close, doClose, getDest, getMessageListener, getMessageSelector, getQueueMode, getTargetName, isOpen, isQueueMode, receive, receive, receiveNoWait, setMessageListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
QueueReceiver(QueueSession sess, Destination queue, String selector) throws JMSException
sess
- The session the receiver belongs to.queue
- The queue the receiver consumes on.selector
- The selector for filtering messages.IllegalStateException
- If the connection is broken.JMSException
- If the creation fails for any other reason.public String toString()
toString
in class MessageConsumer
public Queue getQueue() throws JMSException
getQueue
in interface QueueReceiver
IllegalStateException
- If the receiver is closed.JMSException
Copyright © 2016 ScalAgent D.T.. All Rights Reserved.