Class BasicQueue

  • All Implemented Interfaces:
    jakarta.jms.Destination, jakarta.jms.Queue, java.io.Serializable
    Direct Known Subclasses:
    Queue

    public class BasicQueue
    extends Destination
    implements jakarta.jms.Queue
    A BasicQueue represents an identity of a repository of messages used in the JMS Point-To-Point messaging domain.
    See Also:
    jakarta.jms.Queue, Serialized Form
    • Constructor Detail

      • BasicQueue

        public BasicQueue()
        Constructs an identity of a Point-To-Point Queue with the default name
      • BasicQueue

        public BasicQueue​(java.lang.String name)
                   throws jakarta.jms.JMSException
        Constructs an identity of a Point-To-Point Queue with the given name
        Parameters:
        name - The name of the Queue
        Throws:
        jakarta.jms.JMSException
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object anObject)
        Compares this Queue to the specified object. The result is true if and only if the arguement is not null and is a Queue object with the same Queue Name as this object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        anObject - The object to compare this Queue against.
        Returns:
        true if the object and this Queueare equal; false otherwise.
      • hashCode

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

        public boolean isQueue()
        Returns whether this is a Queueing type of Destination object
        Specified by:
        isQueue in class Destination
        Returns:
        whether this is a Queueing type of Destination object
      • isTemporary

        public boolean isTemporary()
        Returns whether this is a Temporary type of Destination object
        Specified by:
        isTemporary in class Destination
        Returns:
        whether this is a Temporary type of Destination object