Package com.webmethods.jms.impl
Class WmTemporaryTopicImpl
- java.lang.Object
-
- com.webmethods.jms.impl.WmDestinationImpl
-
- com.webmethods.jms.impl.WmTopicImpl
-
- com.webmethods.jms.impl.WmTemporaryTopicImpl
-
- All Implemented Interfaces:
WmDestination
,WmTemporaryDestination
,WmTopic
,java.io.Externalizable
,java.io.Serializable
,javax.jms.Destination
,javax.jms.TemporaryTopic
,javax.jms.Topic
,javax.naming.Referenceable
public class WmTemporaryTopicImpl extends WmTopicImpl implements javax.jms.TemporaryTopic, WmTemporaryDestination
- 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
-
Fields inherited from interface com.webmethods.jms.WmTemporaryDestination
TEMP_QUEUE_EVENT_TYPE, TEMP_TOPIC_EVENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description WmTemporaryTopicImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decrementRefCount()
void
delete()
Deletes this temporary topic.void
incrementRefCount()
boolean
isDeleted()
Get whether this temporary destination has been deleted.void
setEventType(java.lang.String eventType)
Set the event type to be used by this temporary destination.void
setSharedState(boolean sharedState)
Set the shared state attribute of this temporary destination.void
setSharedStateOrdering(int sharedStateOrdering)
Set the shared state ordering of this temporary destination.java.lang.String
toString()
-
Methods inherited from class com.webmethods.jms.impl.WmTopicImpl
equals, getTopicName, isWildCard, readExternal, writeExternal
-
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, setLocalOnly, setName, setPriorityOrdering, setReadOnly, 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, setLocalOnly, setName, setPriorityOrdering, setReadOnly
-
-
-
-
Method Detail
-
delete
public void delete() throws javax.jms.JMSException
Deletes this temporary topic. If there are existing subscribers still using it, aJMSException
will be thrown.- Specified by:
delete
in interfacejavax.jms.TemporaryTopic
- Specified by:
delete
in interfaceWmTemporaryDestination
- Throws:
javax.jms.JMSException
- if the JMS provider fails to delete the temporary topic due to some internal error.
-
setEventType
public void setEventType(java.lang.String eventType) throws javax.jms.JMSException
Set the event type to be used by this temporary destination.- Specified by:
setEventType
in interfaceWmDestination
- Specified by:
setEventType
in interfaceWmTemporaryDestination
- Overrides:
setEventType
in classWmDestinationImpl
- Parameters:
eventType
- the event type to use for this temporary destination- Throws:
javax.jms.JMSException
- if the JMS provider fails to set the event type for this destination due to some internal error.- See Also:
WmDestination.getEventType()
-
setSharedState
public void setSharedState(boolean sharedState) throws javax.jms.JMSException
Set the shared state attribute of this temporary destination.- Specified by:
setSharedState
in interfaceWmDestination
- Overrides:
setSharedState
in classWmDestinationImpl
- Parameters:
sharedState
- the shared state value for this temporary destination- Throws:
javax.jms.JMSException
- if the JMS provider fails to set the shared state value for this destination due to some internal error.- See Also:
WmDestination.getSharedState()
-
setSharedStateOrdering
public void setSharedStateOrdering(int sharedStateOrdering) throws javax.jms.JMSException
Set the shared state ordering of this temporary destination. The shared state ordering can beWmDestination.SHARED_STATE_ORDERING_NONE
orWmDestination.SHARED_STATE_ORDERING_PUBLISHER
.- Specified by:
setSharedStateOrdering
in interfaceWmDestination
- Overrides:
setSharedStateOrdering
in classWmDestinationImpl
- Parameters:
sharedStateOrdering
- the shared state ordering for this temporary destination- Throws:
javax.jms.JMSException
- if the JMS provider fails to set the shared state ordering value for this destination due to some internal error.- See Also:
WmDestination.getSharedStateOrdering()
-
isDeleted
public boolean isDeleted()
Get whether this temporary destination has been deleted.- Specified by:
isDeleted
in interfaceWmTemporaryDestination
- Returns:
true
if this temporary destination has been deleted.
-
incrementRefCount
public void incrementRefCount()
- Specified by:
incrementRefCount
in interfaceWmTemporaryDestination
-
decrementRefCount
public void decrementRefCount()
- Specified by:
decrementRefCount
in interfaceWmTemporaryDestination
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejavax.jms.Topic
- Overrides:
toString
in classWmDestinationImpl
-
-