Package com.webmethods.jms.impl
Class WmTopicImpl
- java.lang.Object
-
- com.webmethods.jms.impl.WmDestinationImpl
-
- com.webmethods.jms.impl.WmTopicImpl
-
- All Implemented Interfaces:
WmDestination
,WmTopic
,java.io.Externalizable
,java.io.Serializable
,javax.jms.Destination
,javax.jms.Topic
,javax.naming.Referenceable
- Direct Known Subclasses:
WmTemporaryTopicImpl
public class WmTopicImpl extends WmDestinationImpl implements WmTopic, javax.naming.Referenceable, java.io.Externalizable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.webmethods.jms.impl.WmDestinationImpl
_clientGroup, _deadLetterOnly, _eventType, _localOnly, _name, _priorityOrdering, _sharedState, _sharedStateOrdering, _wildCard, DEAD_LETTER_ONLY_ATTRIBUTE, EVENT_TYPE_ATTRIBUTE, LOCAL_ONLY_ATTRIBUTE, NAME_ATTRIBUTE, PRIORITY_ORDERING_ATTRIBUTE, PROPERTIES_ATTRIBUTE, QUEUE_NAME_PROTOCOL, READ_ONLY_ATTRIBUTE, SHARED_STATE_ATTRIBUTE, SHARED_STATE_ORDERING_ATTRIBUTE, SHARED_STATE_ORDERING_STRING_NONE, SHARED_STATE_ORDERING_STRING_PUBLISHER, SHARED_STATE_ORDERING_STRING_SESSION, TEMP_QUEUE_NAME_PROTOCOL, TEMP_TOPIC_NAME_PROTOCOL, TOPIC_NAME_PROTOCOL
-
Fields inherited from interface com.webmethods.jms.WmDestination
SHARED_STATE_ORDERING_NONE, SHARED_STATE_ORDERING_PUBLISHER, SHARED_STATE_ORDERING_SESSION, WILDCARD
-
-
Constructor Summary
Constructors Constructor Description WmTopicImpl()
WmTopicImpl(java.lang.String topicName)
WmTopicImpl(java.lang.String topicName, java.util.HashMap<java.lang.String,java.lang.String> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getTopicName()
Gets the name of this topic.boolean
isWildCard()
Get whether the destination is wildcarded.void
readExternal(java.io.ObjectInput in)
void
writeExternal(java.io.ObjectOutput out)
-
Methods inherited from class com.webmethods.jms.impl.WmDestinationImpl
checkSetName, createDestination, fromPropertyString, getClientGroup, getDeadLetterOnly, getEventType, getFullyQualifiedName, getLocalOnly, getName, getPriorityOrdering, getReadOnly, getReference, getSharedState, getSharedStateOrdering, getSharedStateOrderingString, hashCode, isDefault, makePropertyString, readDestination, setAttribute, setAttributes, setClientGroup, setDeadLetterOnly, setEventType, setLocalOnly, setName, setPriorityOrdering, setReadOnly, setSharedState, setSharedStateOrdering, toString, writeDestination
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.webmethods.jms.WmDestination
getDeadLetterOnly, getEventType, getLocalOnly, getName, getPriorityOrdering, getReadOnly, getSharedState, getSharedStateOrdering, setDeadLetterOnly, setEventType, setLocalOnly, setName, setPriorityOrdering, setReadOnly, setSharedState, setSharedStateOrdering
-
-
-
-
Constructor Detail
-
WmTopicImpl
public WmTopicImpl()
-
WmTopicImpl
public WmTopicImpl(java.lang.String topicName) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
WmTopicImpl
public WmTopicImpl(java.lang.String topicName, java.util.HashMap<java.lang.String,java.lang.String> options) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
-
Method Detail
-
getTopicName
public java.lang.String getTopicName() throws javax.jms.JMSException
Gets the name of this topic.Clients that depend upon the name are not portable.
- Specified by:
getTopicName
in interfacejavax.jms.Topic
- Returns:
- the topic name
- Throws:
javax.jms.JMSException
- if the JMS provider implementation ofTopic
fails to return the topic name due to some internal error.
-
isWildCard
public boolean isWildCard() throws javax.jms.JMSException
Get whether the destination is wildcarded.- Specified by:
isWildCard
in interfaceWmDestination
- Overrides:
isWildCard
in classWmDestinationImpl
- Returns:
true
if the destination is wildcarded;false
otherwise- Throws:
javax.jms.JMSException
- if unable to determine if the Destination is wildcarded.
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Overrides:
writeExternal
in classWmDestinationImpl
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Overrides:
readExternal
in classWmDestinationImpl
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classWmDestinationImpl
-
-