public class TibjmsTopic extends TibjmsDestination implements Topic, java.io.Serializable, java.lang.Cloneable, javax.naming.Referenceable
| Constructor and Description |
|---|
TibjmsTopic()
Constructs a new TibjmsTopic object.
|
TibjmsTopic(java.lang.String address)
Constructs a new TibjmsTopic object with the given address.
|
TibjmsTopic(java.lang.String address,
java.lang.String jndiName)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddress()
Gets the address of this topic.
|
javax.naming.Reference |
getReference() |
java.lang.String |
getTopicName()
Gets the name of this topic.
|
void |
setAddress(java.lang.String address)
Sets the address of this topic.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
public TibjmsTopic()
public TibjmsTopic(java.lang.String address)
address - address of the topicpublic TibjmsTopic(java.lang.String address,
java.lang.String jndiName)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object obj)
public java.lang.String getTopicName()
throws JMSException
TopicClients that depend upon the name are not portable.
getTopicName in interface TopicJMSException - if the Jakarta Messaging provider implementation of Topic fails to return the topic name due to
some internal error.public java.lang.String toString()
Topicpublic javax.naming.Reference getReference()
throws javax.naming.NamingException
getReference in interface javax.naming.Referenceablejavax.naming.NamingExceptionpublic java.lang.String getAddress()
public void setAddress(java.lang.String address)
throws JMSException
TibjmsTopic topic = new TibjmsTopic();
topic.setAddress("topic.sample");address - the string representing the address, or name, of this topicJMSException - if the address has already been setCopyright © Cloud Software Group, Inc. All rights reserved