com.ibm.mq.jms
Class MQQueueReceiver
- java.lang.Object
-
- com.ibm.mq.jms.MQRoot
-
- com.ibm.mq.jms.MQMessageConsumer
-
- com.ibm.mq.jms.MQQueueReceiver
-
- All Implemented Interfaces:
- JmsMessageConsumer, JmsPropertyContext, JmsQueueReceiver, JmsReadablePropertyContext, java.io.Serializable, java.lang.AutoCloseable, java.util.Map<java.lang.String,java.lang.Object>, javax.jms.MessageConsumer, javax.jms.QueueReceiver
public class MQQueueReceiver extends MQMessageConsumer implements javax.jms.QueueReceiver, JmsQueueReceiver
A client uses an MQQueueReceiver to receive messages that have been delivered to a queue.- See Also:
- Serialized Form
-
-
Method Summary
Methods Modifier and Type Method and Description void
close()
Closes the receiver.javax.jms.Queue
getQueue()
Gets the queue associated with this queue receiver.-
Methods inherited from class com.ibm.mq.jms.MQMessageConsumer
getDestination, getMessageListener, getMessageSelector, getNoLocal, receive, receive, receiveNoWait, setMessageListener
-
Methods inherited from class com.ibm.mq.jms.MQRoot
clear, containsKey, containsValue, entrySet, equals, get, getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, isEmpty, keySet, propertyExists, put, putAll, remove, setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, size, values
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.msg.client.jms.JmsMessageConsumer
getNoLocal
-
Methods inherited from interface com.ibm.msg.client.jms.JmsPropertyContext
setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
-
Methods inherited from interface com.ibm.msg.client.jms.JmsReadablePropertyContext
getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists
-
-
-
-
Method Detail
-
close
public void close() throws javax.jms.JMSException
Closes the receiver. Releases underlying resources associated with this receiver.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejavax.jms.MessageConsumer
- Overrides:
close
in classMQMessageConsumer
- 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 interfacejavax.jms.QueueReceiver
- Returns:
- the queue
- Throws:
javax.jms.JMSException
- if JMS fails to get queue for this queue receiver due to some internal error
-
-