org.jboss.mq
public class: SpyQueue [javadoc |
source]
java.lang.Object
org.jboss.mq.SpyDestination
org.jboss.mq.SpyQueue
All Implemented Interfaces:
Referenceable, javax.jms.Queue, Serializable, javax.jms.Destination
Direct Known Subclasses:
SpyTemporaryQueue
This class implements javax.jms.Queue
- author:
Norbert - Lataille (Norbert.Lataille@m4x.org)
- author:
Hiram - Chirino (Cojonudo14@hotmail.com)
- author:
David - Maplesden (David.Maplesden@orion.co.nz)
- author:
< - a href="mailto:adrian@jboss.org">Adrian Brock
- version:
$ - Revision: 37459 $
| Field Summary |
|---|
| static final long | serialVersionUID | The serialVersionUID |
| Constructor: |
public SpyQueue(String queueName) {
// Static --------------------------------------------------------
// Constructors --------------------------------------------------
super(queueName);
toStringStr = "QUEUE." + name;
hash++;
}
Parameters:
queueName - the queue name
|
| Method from org.jboss.mq.SpyQueue Detail: |
public boolean equals(Object obj) {
if (!(obj instanceof SpyQueue))
return false;
if (obj.hashCode() != hash)
return false;
return ((SpyQueue) obj).name.equals(name);
}
|
public String getQueueName() {
return name;
}
|
public Reference getReference() throws NamingException {
return new Reference("org.jboss.mq.SpyQueue", new StringRefAddr("name", name),
"org.jboss.mq.referenceable.SpyDestinationObjectFactory", null);
}
|
public String toString() {
return toStringStr;
}
|