Class WmQueueImpl

    • Constructor Detail

      • WmQueueImpl

        public WmQueueImpl()
      • WmQueueImpl

        public WmQueueImpl​(java.lang.String queueName)
                    throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • WmQueueImpl

        public WmQueueImpl​(java.lang.String queueName,
                           java.util.HashMap<java.lang.String,​java.lang.String> options)
                    throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
    • Method Detail

      • getQueueName

        public java.lang.String getQueueName()
                                      throws javax.jms.JMSException
        Gets the name of this queue.

        Clients that depend upon the name are not portable.

        Specified by:
        getQueueName in interface javax.jms.Queue
        Returns:
        the queue name
        Throws:
        javax.jms.JMSException - if the JMS provider implementation of Queue fails to return the queue name due to some internal error.
      • setName

        public void setName​(java.lang.String name)
                     throws javax.jms.JMSException
        Sets the name for the Destination.

        The Destination name must be a valid name. All Destinations must have a name.

        Specified by:
        setName in interface WmDestination
        Overrides:
        setName in class WmDestinationImpl
        Parameters:
        name - the Destination name.
        Throws:
        javax.jms.JMSException - if unable to set the Destination's name.
        See Also:
        WmDestination.getName()
      • getTerritory

        public java.lang.String getTerritory()
                                      throws javax.jms.JMSException
        Get the territory to which this queue belongs.
        Specified by:
        getTerritory in interface WmQueue
        Returns:
        the territory to which this queue belongs, or null to indicate the current territory
        Throws:
        javax.jms.JMSException - if unable to get the territory to which this queue belongs
      • getBroker

        public java.lang.String getBroker()
                                   throws javax.jms.JMSException
        Get the Broker to which this queue belongs.
        Specified by:
        getBroker in interface WmQueue
        Returns:
        the Broker to which this queue belongs, or null to indicate the current Broker
        Throws:
        javax.jms.JMSException - if unable to get the territory to which this queue belongs
      • getLocalName

        public java.lang.String getLocalName()
                                      throws javax.jms.JMSException
        Get the local queue name.
        Specified by:
        getLocalName in interface WmQueue
        Returns:
        the local queue name
        Throws:
        javax.jms.JMSException - if unable to get the local queue name
      • makeEventTypeName

        public static java.lang.String makeEventTypeName​(java.lang.String queueName)
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class WmDestinationImpl
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class WmDestinationImpl
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException