Package org.apache.qpid.jms
Class JmsDestination
- java.lang.Object
-
- org.apache.qpid.jms.jndi.JNDIStorable
-
- org.apache.qpid.jms.JmsDestination
-
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<JmsDestination>,javax.jms.Destination,Referenceable
- Direct Known Subclasses:
JmsQueue,JmsTemporaryDestination,JmsTopic
public abstract class JmsDestination extends JNDIStorable implements Externalizable, javax.jms.Destination, Comparable<JmsDestination>
Jms Destination- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringaddressprotected JmsConnectionconnectionprotected inthashValueprotected booleantemporaryprotected booleantopic
-
Constructor Summary
Constructors Modifier Constructor Description protectedJmsDestination(String address, boolean topic, boolean temporary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>buildFromProperties(Map<String,String> props)Set the properties that will represent the instance in JNDIintcompareTo(JmsDestination other)booleanequals(Object o)StringgetAddress()inthashCode()booleanisQueue()booleanisTemporary()booleanisTopic()protected voidpopulateProperties(Map<String,String> props)Initialize the instance from properties stored in JNDIvoidreadExternal(ObjectInput in)voidsetAddress(String address)StringtoString()voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.apache.qpid.jms.jndi.JNDIStorable
getProperties, getProperty, getReference, setProperties
-
-
-
-
Field Detail
-
address
protected transient String address
-
topic
protected transient boolean topic
-
temporary
protected transient boolean temporary
-
hashValue
protected transient int hashValue
-
connection
protected transient JmsConnection connection
-
-
Constructor Detail
-
JmsDestination
protected JmsDestination(String address, boolean topic, boolean temporary)
-
-
Method Detail
-
getAddress
public String getAddress()
- Returns:
- address of destination
-
setAddress
public void setAddress(String address)
-
isTopic
public boolean isTopic()
- Returns:
- the topic
-
isTemporary
public boolean isTemporary()
- Returns:
- the temporary
-
isQueue
public boolean isQueue()
- Returns:
- true if a Topic
-
buildFromProperties
protected Map<String,String> buildFromProperties(Map<String,String> props)
Description copied from class:JNDIStorableSet the properties that will represent the instance in JNDI- Specified by:
buildFromPropertiesin classJNDIStorable- Parameters:
props- The properties to use when building the new isntance.- Returns:
- a new, unmodifiable, map containing any unused properties, or empty if none were.
-
populateProperties
protected void populateProperties(Map<String,String> props)
Description copied from class:JNDIStorableInitialize the instance from properties stored in JNDI- Specified by:
populatePropertiesin classJNDIStorable- Parameters:
props- The properties to use when initializing the new instance.
-
compareTo
public int compareTo(JmsDestination other)
- Specified by:
compareToin interfaceComparable<JmsDestination>- Parameters:
other- the Object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
- See Also:
Comparable.compareTo(java.lang.Object)
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classJNDIStorable- Throws:
IOException- See Also:
Externalizable.writeExternal(java.io.ObjectOutput)
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classJNDIStorable- Throws:
IOExceptionClassNotFoundException- See Also:
Externalizable.readExternal(java.io.ObjectInput)
-
-