com.ibm.mq.jms
Class MQTemporaryQueue
- 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
-
- com.ibm.mq.jms.MQTemporaryQueue
-
- All Implemented Interfaces:
- com.ibm.jms.JMSDestination, JmsDestination, JmsPropertyContext, JmsQueue, JmsReadablePropertyContext, JmsTemporaryQueue, com.ibm.msg.client.provider.ProviderPropertyContextCallback, java.io.Serializable, java.util.Map<java.lang.String,java.lang.Object>, javax.jms.Destination, javax.jms.Queue, javax.jms.TemporaryQueue, javax.naming.Referenceable
public class MQTemporaryQueue extends MQQueue implements javax.jms.TemporaryQueue, JmsTemporaryQueue
An MQTemporaryQueue object is a unique Queue object created for the duration of a connection.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.ibm.msg.client.jms.JmsDestination
DESTINATION_TYPE_QUEUE, DESTINATION_TYPE_TOPIC
-
-
Method Summary
Methods Modifier and Type Method and Description void
delete()
Deletes this temporary queue.boolean
equals(java.lang.Object obj)
Test for equality.java.lang.Object
getObjectProperty(java.lang.String name)
Gets the Object property value with the given name.java.util.Enumeration<java.lang.String>
getPropertyNames()
Gets all properties which have been set on a resource.int
hashCode()
boolean
propertyExists(java.lang.String name)
Indicates whether a named property exists.void
setBatchProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Sets multiple property values passed in via a Map.void
setObjectProperty(java.lang.String name, java.lang.Object value)
Sets an Object property value with the given name.java.lang.String
toString()
Returns a string representation of this object-
Methods inherited from class com.ibm.mq.jms.MQQueue
getQueueName, getQueueURI
-
Methods inherited from class com.ibm.mq.jms.MQDestination
getCCSID, getDescription, getEncoding, getExpiry, getFailIfQuiesce, getMessageBodyStyle, getMQMDMessageContext, getMQMDReadEnabled, getMQMDWriteEnabled, getPersistence, getPriority, getProperty, getPutAsyncAllowed, getReadAheadAllowed, getReadAheadClosePolicy, getReceiveCCSID, getReceiveConversion, getReference, getReplyToStyle, getStringFromDestination, getTargetClient, getUnmappableAction, getUnmappableReplacement, getWildcardFormat, setCCSID, setDescription, setEncoding, setExpiry, setFailIfQuiesce, setMessageBodyStyle, setMQMDMessageContext, setMQMDReadEnabled, setMQMDWriteEnabled, setPersistence, setPriority, setProperty, setPutAsyncAllowed, setReadAheadAllowed, setReadAheadClosePolicy, setReceiveCCSID, setReceiveConversion, setReplyToStyle, setTargetClient, setUnmappableAction, setUnmappableReplacement, setWildcardFormat
-
Methods inherited from class com.ibm.msg.client.jms.admin.JmsDestinationImpl
getTopicName, setStringProperty
-
Methods inherited from class com.ibm.msg.client.jms.internal.JmsPropertyContextImpl
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setProviderPropertyContext, setShortProperty, size, values
-
Methods inherited from class com.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl
dump, getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getShortProperty, getStringProperty
-
Methods inherited from interface com.ibm.msg.client.jms.JmsPropertyContext
setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setShortProperty, setStringProperty
-
Methods inherited from interface com.ibm.msg.client.jms.JmsReadablePropertyContext
getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getShortProperty, getStringProperty
-
-
-
-
Method Detail
-
delete
public void delete() throws javax.jms.JMSException
Deletes this temporary queue.- Specified by:
delete
in interfacejavax.jms.TemporaryQueue
- Throws:
javax.jms.JMSException
- if the queue is in use, or if the command fails due to some internal error
-
setObjectProperty
public void setObjectProperty(java.lang.String name, java.lang.Object value) throws javax.jms.JMSException
Sets an Object property value with the given name.- Specified by:
setObjectProperty
in interfaceJmsPropertyContext
- Overrides:
setObjectProperty
in classcom.ibm.msg.client.jms.internal.JmsPropertyContextImpl
- Parameters:
name
- the name of the Object propertyvalue
- the Object property value to set- Throws:
javax.jms.JMSException
- if the property is marked read-only or if the proposed value is invalid for the property
-
getObjectProperty
public java.lang.Object getObjectProperty(java.lang.String name) throws javax.jms.JMSException
Gets the Object property value with the given name.- Specified by:
getObjectProperty
in interfaceJmsReadablePropertyContext
- Overrides:
getObjectProperty
in classcom.ibm.msg.client.jms.internal.JmsPropertyContextImpl
- Parameters:
name
- the name of the property to be retrieved- Returns:
- the Object property value with the given name
- Throws:
javax.jms.JMSException
- if the operation fails
-
setBatchProperties
public void setBatchProperties(java.util.Map<java.lang.String,java.lang.Object> properties) throws javax.jms.JMSException
Sets multiple property values passed in via a Map.- Specified by:
setBatchProperties
in interfaceJmsPropertyContext
- Overrides:
setBatchProperties
in classcom.ibm.msg.client.jms.internal.JmsPropertyContextImpl
- Parameters:
properties
- the Map of properties to set- Throws:
javax.jms.JMSException
- if any property is marked read-only or if the proposed value is invalid for any property
-
getPropertyNames
public java.util.Enumeration<java.lang.String> getPropertyNames() throws javax.jms.JMSException
Gets all properties which have been set on a resource.- Specified by:
getPropertyNames
in interfaceJmsReadablePropertyContext
- Overrides:
getPropertyNames
in classcom.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl
- Returns:
- the Enumeration of all set properties
- Throws:
javax.jms.JMSException
- if the operation fails
-
propertyExists
public boolean propertyExists(java.lang.String name) throws javax.jms.JMSException
Indicates whether a named property exists.- Specified by:
propertyExists
in interfaceJmsReadablePropertyContext
- Overrides:
propertyExists
in classcom.ibm.msg.client.jms.internal.JmsPropertyContextImpl
- Parameters:
name
- the name of the property to be retrieved- Returns:
- true if the property exists, false if it does not.
- Throws:
javax.jms.JMSException
- if the operation fails
-
equals
public boolean equals(java.lang.Object obj)
Test for equality.- Specified by:
equals
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
equals
in classcom.ibm.msg.client.jms.admin.JmsDestinationImpl
- Parameters:
obj
- the object to be compared with this object- Returns:
- a boolean indicating whether obj is equal to this object or not
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
hashCode
in classcom.ibm.msg.client.jms.admin.JmsDestinationImpl
- See Also:
JmsDestinationImpl.hashCode()
-
-