Class BasicTopic

All Implemented Interfaces:
jakarta.jms.Destination, jakarta.jms.Topic, Serializable
Direct Known Subclasses:
Topic

public class BasicTopic extends Destination implements jakarta.jms.Topic
A BasicTopic represents an identity of a repository of messages used in the JMS Publish/Subscribe messaging domain.
See Also:
  • Constructor Details

    • BasicTopic

      public BasicTopic()
      Constructs an identity of a Publish/Subscribe Topic with the default name
    • BasicTopic

      public BasicTopic(String name) throws jakarta.jms.JMSException
      Constructs an identity of a Publish/Subscribe Topic with the given name
      Parameters:
      name - The name of the Topic
      Throws:
      jakarta.jms.JMSException
  • Method Details

    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class 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