Package com.webmethods.jms.impl
Class WmTemporaryQueueImpl
- java.lang.Object
-
- com.webmethods.jms.impl.WmDestinationImpl
-
- com.webmethods.jms.impl.WmQueueImpl
-
- com.webmethods.jms.impl.WmTemporaryQueueImpl
-
- All Implemented Interfaces:
WmDestination
,WmQueue
,WmTemporaryDestination
,java.io.Externalizable
,java.io.Serializable
,javax.jms.Destination
,javax.jms.Queue
,javax.jms.TemporaryQueue
,javax.naming.Referenceable
public class WmTemporaryQueueImpl extends WmQueueImpl implements javax.jms.TemporaryQueue, WmTemporaryDestination
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.webmethods.jms.impl.WmQueueImpl
_connection
-
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 WmTemporaryQueueImpl()
WmTemporaryQueueImpl(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTemporaryQueue(WmTemporaryQueueImpl tq)
void
addTemporaryQueue(java.util.List<WmTemporaryQueueImpl> tq)
void
create()
Creates the queue on the JMS Broker.void
decrementRefCount()
void
delete()
Deletes this temporary queue.java.util.List<WmTemporaryQueueImpl>
getTemporaryQueues()
int
hashCode()
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.WmQueueImpl
equals, getBroker, getConnection, getEventType, getLocalName, getQueueName, getTerritory, makeEventTypeName, readExternal, setConnection, setName, writeExternal
-
Methods inherited from class com.webmethods.jms.impl.WmDestinationImpl
checkSetName, createDestination, fromPropertyString, getClientGroup, getDeadLetterOnly, getFullyQualifiedName, getLocalOnly, getName, getPriorityOrdering, getReadOnly, getReference, getSharedState, getSharedStateOrdering, getSharedStateOrderingString, isDefault, isWildCard, makePropertyString, readDestination, setAttribute, setAttributes, setClientGroup, setDeadLetterOnly, setLocalOnly, 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, getLocalOnly, getName, getPriorityOrdering, getReadOnly, getSharedState, getSharedStateOrdering, isWildCard, setDeadLetterOnly, setLocalOnly, setPriorityOrdering, setReadOnly
-
-
-
-
Method Detail
-
delete
public void delete() throws javax.jms.JMSException
Deletes this temporary queue. If there are existing receivers still using it, aJMSException
will be thrown.- Specified by:
delete
in interfacejavax.jms.TemporaryQueue
- Specified by:
delete
in interfaceWmTemporaryDestination
- Throws:
javax.jms.JMSException
- if the JMS provider fails to delete the temporary queue 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
-
create
public void create() throws javax.jms.JMSException
Creates the queue on the JMS Broker.- Throws:
javax.jms.JMSException
- if the queue could not be created
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejavax.jms.Queue
- Overrides:
toString
in classWmDestinationImpl
-
addTemporaryQueue
public void addTemporaryQueue(WmTemporaryQueueImpl tq)
-
addTemporaryQueue
public void addTemporaryQueue(java.util.List<WmTemporaryQueueImpl> tq)
-
getTemporaryQueues
public java.util.List<WmTemporaryQueueImpl> getTemporaryQueues()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classWmQueueImpl
-
-