Class JmsDestination

    • Field Detail

      • address

        protected transient java.lang.String address
      • topic

        protected transient boolean topic
      • temporary

        protected transient boolean temporary
      • hashValue

        protected transient int hashValue
    • Constructor Detail

      • JmsDestination

        protected JmsDestination​(java.lang.String address,
                                 boolean topic,
                                 boolean temporary)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getAddress

        public java.lang.String getAddress()
        Returns:
        address of destination
      • setAddress

        public void setAddress​(java.lang.String address)
      • isTopic

        public boolean isTopic()
        Returns:
        the topic
      • isTemporary

        public boolean isTemporary()
        Returns:
        the temporary
      • isQueue

        public boolean isQueue()
        Returns:
        true if a Topic
      • buildFromProperties

        protected java.util.Map<java.lang.String,​java.lang.String> buildFromProperties​(java.util.Map<java.lang.String,​java.lang.String> props)
        Description copied from class: JNDIStorable
        Set the properties that will represent the instance in JNDI
        Specified by:
        buildFromProperties in class JNDIStorable
        Parameters:
        props - The properties to use when building the new isntance.
        Returns:
        a new, unmodifiable, map containing any unused properties, or empty if none were.
      • populateProperties

        protected void populateProperties​(java.util.Map<java.lang.String,​java.lang.String> props)
        Description copied from class: JNDIStorable
        Initialize the instance from properties stored in JNDI
        Specified by:
        populateProperties in class JNDIStorable
        Parameters:
        props - The properties to use when initializing the new instance.
      • compareTo

        public int compareTo​(JmsDestination other)
        Specified by:
        compareTo in interface java.lang.Comparable<JmsDestination>
        Parameters:
        other - the Object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
        See Also:
        Comparable.compareTo(java.lang.Object)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class JNDIStorable
        Throws:
        java.io.IOException
        See Also:
        Externalizable.writeExternal(java.io.ObjectOutput)
      • 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 JNDIStorable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
        See Also:
        Externalizable.readExternal(java.io.ObjectInput)