public class QueueReceiver extends MessageConsumer implements javax.jms.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 |
---|---|
javax.jms.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
QueueReceiver(QueueSession sess, Destination queue, String selector) throws javax.jms.JMSException
sess
- The session the receiver belongs to.queue
- The queue the receiver consumes on.selector
- The selector for filtering messages.javax.jms.IllegalStateException
- If the connection is broken.javax.jms.JMSException
- If the creation fails for any other reason.public String toString()
toString
in class MessageConsumer
public javax.jms.Queue getQueue() throws javax.jms.JMSException
getQueue
in interface javax.jms.QueueReceiver
javax.jms.IllegalStateException
- If the receiver is closed.javax.jms.JMSException
Copyright © 2018 ScalAgent D.T.. All Rights Reserved.