Class MQQueue
java.lang.Object
com.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl
com.ibm.msg.client.jms.internal.JmsPropertyContextImpl
com.ibm.msg.client.jms.admin.JmsDestinationImpl
com.ibm.msg.client.jms.admin.JmsJndiDestinationImpl
com.ibm.mq.jms.MQDestination
com.ibm.mq.jms.MQQueue
- All Implemented Interfaces:
com.ibm.jms.JMSDestination, JmsDestination, JmsPropertyContext, JmsQueue, JmsReadablePropertyContext, com.ibm.msg.client.provider.ProviderPropertyContextCallback, Serializable, Map<String,Object>, javax.jms.Destination, javax.jms.Queue, Referenceable
- Direct Known Subclasses:
MQTemporaryQueue
public class MQQueue
extends MQDestination
implements javax.jms.Queue, JmsQueue, Referenceable, Serializable
An MQQueue object encapsulates a provider-specific queue name. It is the way that a client
specifies the identity of a queue to JMS methods.
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from interface JmsDestination
DESTINATION_TYPE_QUEUE, DESTINATION_TYPE_TOPICFields inherited from interface com.ibm.jms.JMSDestination
sccsid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the URI of this queue.toString()toString returns the Queue nameMethods inherited from class MQDestination
getAlternateUserId, getCCSID, getDescription, getEncoding, getExpiry, getFailIfQuiesce, getMessageBodyStyle, getMQMDMessageContext, getMQMDReadEnabled, getMQMDWriteEnabled, getPersistence, getPriority, getProperty, getPutAsyncAllowed, getReadAheadAllowed, getReadAheadClosePolicy, getReceiveCCSID, getReceiveConversion, getReference, getReplyToStyle, getStringFromDestination, getTargetClient, getUnmappableAction, getUnmappableReplacement, getWildcardFormat, setAlternateUserId, setCCSID, setDescription, setEncoding, setExpiry, setFailIfQuiesce, setMessageBodyStyle, setMQMDMessageContext, setMQMDReadEnabled, setMQMDWriteEnabled, setPersistence, setPriority, setProperty, setPutAsyncAllowed, setReadAheadAllowed, setReadAheadClosePolicy, setReceiveCCSID, setReceiveConversion, setReplyToStyle, setTargetClient, setUnmappableAction, setUnmappableReplacement, setWildcardFormatMethods inherited from class com.ibm.msg.client.jms.admin.JmsDestinationImpl
equals, getTopicName, hashCode, setStringPropertyMethods inherited from class com.ibm.msg.client.jms.internal.JmsPropertyContextImpl
clear, containsKey, containsValue, entrySet, get, getObjectProperty, isEmpty, keySet, propertyExists, put, putAll, remove, setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setProviderPropertyContext, setShortProperty, size, valuesMethods inherited from class com.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl
dump, getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getPropertyNames, getShortProperty, getStringProperty, propertyAppExistsMethods inherited from interface JmsPropertyContext
setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toJsonMethods inherited from interface JmsReadablePropertyContext
getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, stringifyMeMethods inherited from interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface Referenceable
getReference
-
Constructor Details
-
MQQueue
public MQQueue()Creates a new MQQueue object. Note that the queue name and the queue manager name (in the case where the queue manager is not the default queue manager) must be specified before this object is used. -
MQQueue
Creates a new MQQueue object.- Parameters:
queueName- is one of:- the name of a base IBM MQ queue - assumes default queue manager
- a uniform resource identifier (URI). This form allows you to specify remote
queues (queues on a queue manager other than the one to which you are connected). It
also allows you to set the other properties contained in the object. The URI is in the
form:
queue://qmgrName/queueName [name-value pairs]Where:
- qmgrName
- is the name of the queue manager on which the queue resides.
- queueName
- is the name of the queue
- [name-value pairs]
- is an optional list of name-value pairs that sets the remaining Queue properties. If the name of the queue manager is omitted the queue manager to which the owning QueueConnection is connected is used.
- Throws:
javax.jms.JMSException- if the queue or queue manager names are invalid.
-
MQQueue
-
-
Method Details
-
getQueueURI
Gets the URI of this queue.Clients that depend upon the name are not portable.
- Returns:
- the queue uri
-
getQueueName
- Specified by:
getQueueNamein interfacejavax.jms.Queue- Overrides:
getQueueNamein classcom.ibm.msg.client.jms.admin.JmsDestinationImpl- See Also:
-
toString
toString returns the Queue name- Specified by:
toStringin interfacejavax.jms.Queue- Overrides:
toStringin classcom.ibm.msg.client.jms.admin.JmsDestinationImpl- Returns:
- Queue name as a URI
-