org.exolab.jms.client
Class JmsQueue

java.lang.Object
  |
  +--org.exolab.jms.message.DestinationImpl
        |
        +--org.exolab.jms.client.JmsDestination
              |
              +--org.exolab.jms.client.JmsQueue
All Implemented Interfaces:
java.lang.Cloneable, javax.jms.Destination, java.io.Externalizable, javax.jms.Queue, javax.naming.Referenceable, java.io.Serializable
Direct Known Subclasses:
JmsTemporaryQueue

public class JmsQueue
extends JmsDestination
implements javax.jms.Queue, java.io.Externalizable

This object represents a queue, which is a type of destination. A queue is identified by name and two queues with the same name refer to the same object.

Version:
$Revision: 1.1 $ $Date: 2004/11/26 01:50:40 $
Author:
Jim Alateras
See Also:
Serialized Form

Constructor Summary
JmsQueue()
          Need a default constructor for the serialization
JmsQueue(java.lang.String name)
          Instantiate an instance of a queue name
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.lang.String getQueueName()
          Return the name of the queue
 javax.naming.Reference getReference()
          Retrieves the Reference of this object
 int hashCode()
           
 void readExternal(java.io.ObjectInput stream)
           
 void writeExternal(java.io.ObjectOutput stream)
           
 
Methods inherited from class org.exolab.jms.client.JmsDestination
getName, getPersistent, isTemporaryDestination, isTemporaryDestination, setPersistent, toString
 
Methods inherited from class org.exolab.jms.message.DestinationImpl
clone, getDestination, isEqual
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Queue
toString
 

Constructor Detail

JmsQueue

public JmsQueue()
Need a default constructor for the serialization

JmsQueue

public JmsQueue(java.lang.String name)
Instantiate an instance of a queue name
Parameters:
name - queue name
Method Detail

getQueueName

public java.lang.String getQueueName()
                              throws javax.jms.JMSException
Return the name of the queue
Specified by:
getQueueName in interface javax.jms.Queue
Returns:
name name of the queue
Throws:
javax.jms.JMSException -  

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class JmsDestination

writeExternal

public void writeExternal(java.io.ObjectOutput stream)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class JmsDestination

readExternal

public void readExternal(java.io.ObjectInput stream)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class JmsDestination

getReference

public javax.naming.Reference getReference()
Retrieves the Reference of this object
Returns:
the non-null Reference of this object


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.