org.jboss.mq
public class: SpyTopic [javadoc |
source]
java.lang.Object
org.jboss.mq.SpyDestination
org.jboss.mq.SpyTopic
All Implemented Interfaces:
Referenceable, javax.jms.Topic, Serializable, javax.jms.Destination
Direct Known Subclasses:
SpyTemporaryTopic
This class implements javax.jms.Topic
- 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 |
| protected DurableSubscriptionID | durableSubscriptionID | The durableSubscriptionID |
| Constructor: |
public SpyTopic(String topicName) {
// Static --------------------------------------------------------
// Constructors --------------------------------------------------
super(topicName);
toStringStr = "TOPIC." + name;
}
Parameters:
topicName - the topic name
|
public SpyTopic(SpyTopic topic,
DurableSubscriptionID subid) {
super(topic.getTopicName());
if (subid == null)
toStringStr = "TOPIC." + name;
else
toStringStr = "TOPIC." + name + "." + subid;
this.durableSubscriptionID = subid;
}
Parameters:
topic - the topic
subid - the durable subscription
|
public SpyTopic(SpyTopic topic,
String clientID,
String subscriptionName,
String selector) {
this(topic, new DurableSubscriptionID(clientID, subscriptionName, selector));
}
Parameters:
topic - the topic
clientID - the client id
subscriptionName - the subscription name
selector - the selector
|
| Method from org.jboss.mq.SpyTopic Detail: |
public boolean equals(Object obj) {
if (!(obj instanceof SpyTopic))
return false;
if (obj.hashCode() != hash)
return false;
return ((SpyDestination) obj).name.equals(name);
}
|
public DurableSubscriptionID getDurableSubscriptionID() {
return durableSubscriptionID;
}
Get the durable subscription id
return the durable subscription id |
public Reference getReference() throws NamingException {
return new Reference("org.jboss.mq.SpyTopic", new StringRefAddr("name", name),
"org.jboss.mq.referenceable.SpyDestinationObjectFactory", null);
}
|
public String getTopicName() {
return name;
}
|
public String toString() {
return toStringStr;
}
|