|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprogress.message.jclient.Topic
public class Topic
A Topic object encapsulates a provider-specific topic name. It is the way a client specifies the identity of a topic to JMS methods.
Many Pub/Sub providers group topics into hierarchies and provide various options for subscribing to parts of the hierarchy. JMS places no restriction on what a Topic object represents. It might be a leaf in a topic hierarchy or it might be a larger part of the hierarchy.
The organization of topics and the granularity of subscriptions to them is an important part of a Pub/Sub application's architecture. JMS does not specify a policy for how this should be done. If an application takes advantage of a provider-specific topic grouping mechanism, it should document this. If the application is installed using a different provider, it is the job of the administrator to construct an equivalent topic architecture and create equivalent Topic objects.
Topic
,
Serialized FormConstructor Summary | |
---|---|
Topic()
Contruct a Topic. |
|
Topic(java.lang.String topicName)
Construct a Topic. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getName()
|
javax.naming.Reference |
getReference()
Return a javax.naming.Reference object which contains the reference information necessary to create an object of the proper type. |
java.lang.String |
getTopicName()
Get the name of this topic. |
int |
hashCode()
|
void |
setName(java.lang.String name)
|
void |
setTopicName(java.lang.String name)
Set the topic name. |
java.lang.String |
toString()
Return a pretty printed version of the topic name. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Topic(java.lang.String topicName) throws JMSException
topicName
- the name of this topic
JMSException
- if a session fails to create a topic
due to some JMS error.public Topic()
setTopicName(java.lang.String)
Method Detail |
---|
public java.lang.String getTopicName() throws JMSException
Clients that depend upon the name, are not portable.
getTopicName
in interface Topic
JMSException
- if JMS implementation for Topic fails to
to return topic name due to some internal
error.public void setTopicName(java.lang.String name) throws JMSException
name
- The topic name
JMSException
public java.lang.String toString()
toString
in interface Topic
toString
in class java.lang.Object
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
- if the object naming is invalid.public void setName(java.lang.String name) throws JMSException
JMSException
public java.lang.String getName() throws JMSException
JMSException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |