Class Destination

    • Constructor Detail

      • Destination

        public Destination()
        Constructs an "untitled" Destination.
      • Destination

        public Destination​(java.lang.String name)
                    throws jakarta.jms.InvalidDestinationException
        Constructs a Destination given the name
        Parameters:
        name - The name of the Destination
        Throws:
        jakarta.jms.InvalidDestinationException
        See Also:
        If name is an invalid destination name
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of this Destination.
        Returns:
        the Destination name
      • getQueueName

        public java.lang.String getQueueName()
                                      throws jakarta.jms.JMSException
        Returns the queue name.
        Returns:
        the queue name
        Throws:
        jakarta.jms.JMSException - if a queue access error occurs.
      • getTopicName

        public java.lang.String getTopicName()
                                      throws jakarta.jms.JMSException
        Returns the topic name.
        Returns:
        the topic name
        Throws:
        jakarta.jms.JMSException - if a topic access error occurs.
      • toString

        public java.lang.String toString()
        Returns a pretty printed version of the provider specific information for this Destination identity object.
        Overrides:
        toString in class AdministeredObject
        Returns:
        the pretty printed string.
      • isQueue

        public abstract boolean isQueue()
        Returns whether this is a Queueing type of Destination.
        Returns:
        whether this is a Queueing type of Destination.
      • isTemporary

        public abstract boolean isTemporary()
        Returns whether this is a Temporary type of Destination.
        Returns:
        whether this is a Temporary type of Destination.
      • setDefaultConfiguration

        public void setDefaultConfiguration()
        Sets the minimum Destination configuration defaults required of a Sun MQ Destination identity object.
        Specified by:
        setDefaultConfiguration in class AdministeredObject
      • validate_imqDestinationName

        public java.lang.Boolean validate_imqDestinationName​(java.lang.String name)
        Validates a Destination name.
        Parameters:
        name - The Destination name.
        Returns:
        true if the name is valid; false if the name is invalid.