Package com.sun.messaging
Class Topic
java.lang.Object
com.sun.messaging.AdministeredObject
com.sun.messaging.Destination
com.sun.messaging.BasicTopic
com.sun.messaging.Topic
- All Implemented Interfaces:
- jakarta.jms.Destination,- jakarta.jms.Topic,- Serializable,- Referenceable
A 
Topic represents an identity of a repository of messages used in the JMS Publish/Subscribe messaging
 domain.- See Also:
- 
Field SummaryFields inherited from class com.sun.messaging.AdministeredObjectAO_PROPERTY_TYPE_BOOLEAN, AO_PROPERTY_TYPE_INTEGER, AO_PROPERTY_TYPE_LIST, AO_PROPERTY_TYPE_LONG, AO_PROPERTY_TYPE_PROPERTYOWNER, AO_PROPERTY_TYPE_STRING, cachedConfigurationMap, configuration, configurationLabels, configurationTypes, cr, VERSION
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the description for this Topic.Returns a Reference Object that can be used to reconstruct this object.voidsetDescription(String description) Sets a description for this Topic.voidSets the name of this Topic.Methods inherited from class com.sun.messaging.BasicTopicequals, hashCode, isQueue, isTemporaryMethods inherited from class com.sun.messaging.DestinationgetName, getQueueName, getTopicName, setDefaultConfiguration, toString, validate_imqDestinationNameMethods inherited from class com.sun.messaging.AdministeredObjectdump, enumeratePropertyNames, getConfiguration, getCurrentConfiguration, getLabelForGroup, getPropertiesForGroup, getProperty, getPropertyForListValue, getPropertyGroups, getPropertyLabel, getPropertyListOtherName, getPropertyListValues, getPropertyType, getPropertyValueForListValue, getStoredVersion, getVERSION, isPropertyDeprecated, isPropertyHidden, isReadOnly, isStoredVersionCompatible, setProperty, setReadOnly, setStoredVersionMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.jms.TopicgetTopicName, toString
- 
Constructor Details- 
Topicpublic Topic()Constructs an identity of a Publish/Subscribe Topic with the default name
- 
TopicConstructs an identity of a Publish/Subscribe Topic with the given name- Parameters:
- name- The name of the Topic
- Throws:
- jakarta.jms.JMSException
 
 
- 
- 
Method Details- 
getReferenceReturns a Reference Object that can be used to reconstruct this object.- Specified by:
- getReferencein interface- Referenceable
- Returns:
- The Reference Object that can be used to reconstruct this object
 
- 
setNameSets the name of this Topic. This method performs name validatation This is used by an Application Server via the Sun MQ J2EE Resource Adapter- Parameters:
- name- The name of the Topic
- Throws:
- IllegalArgumentException- if name is invalid
 
- 
setDescriptionSets a description for this Topic. The description can be any String- Parameters:
- description- The description for this Topic
 
- 
getDescriptionReturns the description for this Topic.- Returns:
- The description for this Topic
 
 
-