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, Serializable, Map<String,Object>, javax.jms.Destination, javax.jms.Queue, javax.jms.TemporaryQueue, 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:
  • Method Details

    • delete

      public void delete() throws javax.jms.JMSException
      Deletes this temporary queue.
      Specified by:
      delete in interface javax.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(String name, Object value) throws javax.jms.JMSException
      Sets an Object property value with the given name.
      Specified by:
      setObjectProperty in interface JmsPropertyContext
      Overrides:
      setObjectProperty in class com.ibm.msg.client.jms.internal.JmsPropertyContextImpl
      Parameters:
      name - the name of the Object property
      value - 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 Object getObjectProperty(String name) throws javax.jms.JMSException
      Gets the Object property value with the given name.
      Specified by:
      getObjectProperty in interface JmsReadablePropertyContext
      Overrides:
      getObjectProperty in class com.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(Map<String,Object> properties) throws javax.jms.JMSException
      Sets multiple property values passed in via a Map.
      Specified by:
      setBatchProperties in interface JmsPropertyContext
      Overrides:
      setBatchProperties in class com.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 Enumeration<String> getPropertyNames() throws javax.jms.JMSException
      Gets all properties which have been set on a resource.
      Specified by:
      getPropertyNames in interface JmsReadablePropertyContext
      Overrides:
      getPropertyNames in class com.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(String name) throws javax.jms.JMSException
      Indicates whether a named property exists.
      Specified by:
      propertyExists in interface JmsReadablePropertyContext
      Overrides:
      propertyExists in class com.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(Object obj)
      Test for equality.
      Specified by:
      equals in interface Map<String,Object>
      Overrides:
      equals in class com.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 interface Map<String,Object>
      Overrides:
      hashCode in class com.ibm.msg.client.jms.admin.JmsDestinationImpl
      See Also:
      • JmsDestinationImpl.hashCode()
    • toString

      public String toString()
      Returns a string representation of this object
      Specified by:
      toString in interface javax.jms.Queue
      Overrides:
      toString in class MQQueue
      Returns:
      the string representation of this object