Package com.webmethods.jms.impl
Class WmQueueImpl
- java.lang.Object
-
- com.webmethods.jms.impl.WmDestinationImpl
-
- com.webmethods.jms.impl.WmQueueImpl
-
- All Implemented Interfaces:
WmDestination
,WmQueue
,java.io.Externalizable
,java.io.Serializable
,javax.jms.Destination
,javax.jms.Queue
,javax.naming.Referenceable
- Direct Known Subclasses:
WmTemporaryQueueImpl
public class WmQueueImpl extends WmDestinationImpl implements WmQueue, javax.naming.Referenceable, java.io.Externalizable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected WmConnectionImpl
_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
-
-
Constructor Summary
Constructors Constructor Description WmQueueImpl()
WmQueueImpl(java.lang.String queueName)
WmQueueImpl(java.lang.String queueName, java.util.HashMap<java.lang.String,java.lang.String> options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getBroker()
Get the Broker to which this queue belongs.protected WmConnectionImpl
getConnection()
java.lang.String
getEventType()
Get the event type name used for this destination.java.lang.String
getLocalName()
Get the local queue name.java.lang.String
getQueueName()
Gets the name of this queue.java.lang.String
getTerritory()
Get the territory to which this queue belongs.int
hashCode()
static java.lang.String
makeEventTypeName(java.lang.String queueName)
void
readExternal(java.io.ObjectInput in)
void
setConnection(WmConnectionImpl connection)
void
setName(java.lang.String name)
Sets the name for the Destination.void
writeExternal(java.io.ObjectOutput out)
-
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, setEventType, setLocalOnly, 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, getLocalOnly, getName, getPriorityOrdering, getReadOnly, getSharedState, getSharedStateOrdering, isWildCard, setDeadLetterOnly, setEventType, setLocalOnly, setPriorityOrdering, setReadOnly, setSharedState, setSharedStateOrdering
-
-
-
-
Field Detail
-
_connection
protected WmConnectionImpl _connection
-
-
Constructor Detail
-
WmQueueImpl
public WmQueueImpl()
-
WmQueueImpl
public WmQueueImpl(java.lang.String queueName) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
WmQueueImpl
public WmQueueImpl(java.lang.String queueName, java.util.HashMap<java.lang.String,java.lang.String> options) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
-
Method Detail
-
getQueueName
public java.lang.String getQueueName() throws javax.jms.JMSException
Gets the name of this queue.Clients that depend upon the name are not portable.
- Specified by:
getQueueName
in interfacejavax.jms.Queue
- Returns:
- the queue name
- Throws:
javax.jms.JMSException
- if the JMS provider implementation ofQueue
fails to return the queue name due to some internal error.
-
setName
public void setName(java.lang.String name) throws javax.jms.JMSException
Sets the name for the Destination.The Destination name must be a valid name. All Destinations must have a name.
- Specified by:
setName
in interfaceWmDestination
- Overrides:
setName
in classWmDestinationImpl
- Parameters:
name
- the Destination name.- Throws:
javax.jms.JMSException
- if unable to set the Destination's name.- See Also:
WmDestination.getName()
-
getEventType
public java.lang.String getEventType() throws javax.jms.JMSException
Get the event type name used for this destination.- Specified by:
getEventType
in interfaceWmDestination
- Overrides:
getEventType
in classWmDestinationImpl
- Returns:
- the event type name for this destination
- Throws:
javax.jms.JMSException
- See Also:
WmDestination.setEventType(java.lang.String)
-
getTerritory
public java.lang.String getTerritory() throws javax.jms.JMSException
Get the territory to which this queue belongs.- Specified by:
getTerritory
in interfaceWmQueue
- Returns:
- the territory to which this queue belongs, or null to indicate the current territory
- Throws:
javax.jms.JMSException
- if unable to get the territory to which this queue belongs
-
getBroker
public java.lang.String getBroker() throws javax.jms.JMSException
Get the Broker to which this queue belongs.
-
getLocalName
public java.lang.String getLocalName() throws javax.jms.JMSException
Get the local queue name.- Specified by:
getLocalName
in interfaceWmQueue
- Returns:
- the local queue name
- Throws:
javax.jms.JMSException
- if unable to get the local queue name
-
makeEventTypeName
public static java.lang.String makeEventTypeName(java.lang.String queueName)
-
setConnection
public void setConnection(WmConnectionImpl connection)
-
getConnection
protected WmConnectionImpl getConnection()
-
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
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classWmDestinationImpl
-
-