Class Queue

All Implemented Interfaces:
jakarta.jms.Destination, jakarta.jms.Queue, Serializable, Referenceable

public class Queue extends BasicQueue implements Referenceable
A Queue represents an identity of a repository of messages used in the JMS Point-To-Point messaging domain.
See Also:
  • Constructor Details

    • Queue

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

      public Queue(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 Details

    • getReference

      public Reference getReference()
      Returns a Reference Object that can be used to reconstruct this object.
      Specified by:
      getReference in interface Referenceable
      Returns:
      The Reference Object that can be used to reconstruct this object
    • setName

      public void setName(String name)
      Sets the name of the Queue. This method performs name validatation This is used by an Application Server via the Sun MQ J2EE Resource Adapter
      Parameters:
      name - The name of the Queue
      Throws:
      IllegalArgumentException - if name is invalid
    • setDescription

      public void setDescription(String description)
      Sets a description for this Queue. The description can be any String
      Parameters:
      description - The description for this Queue
    • getDescription

      public String getDescription()
      Returns the description for this Queue.
      Returns:
      The description for this Queue