Class QueueImpl

  • All Implemented Interfaces:
    DestinationImpl, java.io.Serializable, javax.jms.Destination, javax.jms.Queue, javax.naming.Referenceable
    Direct Known Subclasses:
    TemporaryQueueImpl, TopicImpl

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

      Constructors 
      Constructor Description
      QueueImpl()
      Creates a new QueueImpl.
      QueueImpl​(java.lang.String queueName)
      Creates a new QueueImpl.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getQueueName()
      Get the name of this queue.
      javax.naming.Reference getReference()  
      int getType()  
      void readContent​(java.io.DataInput in)  
      void setQueueName​(java.lang.String queueName)
      Set the queue name.
      java.lang.String toString()
      Return a pretty printed version of the queue name
      void unfoldBuffers()  
      void writeContent​(java.io.DataOutput out)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • QueueImpl

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

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

      • getReference

        public javax.naming.Reference getReference()
                                            throws javax.naming.NamingException
        Specified by:
        getReference in interface javax.naming.Referenceable
        Throws:
        javax.naming.NamingException
      • writeContent

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

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

        public java.lang.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​(java.lang.String queueName)
        Set the queue name.
        Parameters:
        queueName - queue name.
      • toString

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