Class QueueImpl

java.lang.Object
com.swiftmq.jms.QueueImpl
All Implemented Interfaces:
DestinationImpl, Serializable, javax.jms.Destination, javax.jms.Queue, Referenceable
Direct Known Subclasses:
TemporaryQueueImpl, TopicImpl

public class QueueImpl extends Object implements javax.jms.Queue, Referenceable, Serializable, DestinationImpl
Implementation of a Queue.
Author:
IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
See Also:
  • Constructor Details

    • QueueImpl

      public QueueImpl(String queueName)
      Creates a new QueueImpl.
      Parameters:
      queueName - queue name.
    • QueueImpl

      public QueueImpl()
      Creates a new QueueImpl.
  • Method Details

    • getReference

      public Reference getReference() throws NamingException
      Specified by:
      getReference in interface Referenceable
      Throws:
      NamingException
    • unfoldBuffers

      public void unfoldBuffers()
      Specified by:
      unfoldBuffers in interface DestinationImpl
    • getType

      public int getType()
      Specified by:
      getType in interface DestinationImpl
    • writeContent

      public void writeContent(DataOutput out) throws IOException
      Specified by:
      writeContent in interface DestinationImpl
      Throws:
      IOException
    • readContent

      public void readContent(DataInput in) throws IOException
      Specified by:
      readContent in interface DestinationImpl
      Throws:
      IOException
    • getQueueName

      public String getQueueName() throws javax.jms.JMSException
      Get the name of this queue.

      Clients that depend upon the name, are not portable.

      Specified by:
      getQueueName in interface javax.jms.Queue
      Returns:
      the queue name
      Throws:
      javax.jms.JMSException - if JMS implementation for Queue fails to to return queue name due to some internal error.
    • setQueueName

      public void setQueueName(String queueName)
      Set the queue name.
      Parameters:
      queueName - queue name.
    • toString

      public String toString()
      Return a pretty printed version of the queue name
      Specified by:
      toString in interface javax.jms.Queue
      Overrides:
      toString in class Object
      Returns:
      the provider specific identity values for this queue.