Package org.apache.qpid.jms
Class JmsDestination
java.lang.Object
org.apache.qpid.jms.jndi.JNDIStorable
org.apache.qpid.jms.JmsDestination
- All Implemented Interfaces:
jakarta.jms.Destination,Externalizable,Serializable,Comparable<JmsDestination>,Referenceable
- Direct Known Subclasses:
JmsQueue,JmsTemporaryDestination,JmsTopic
public abstract class JmsDestination
extends JNDIStorable
implements Externalizable, jakarta.jms.Destination, Comparable<JmsDestination>
Jms Destination
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected JmsConnectionprotected intprotected booleanprotected boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJmsDestination(String address, boolean topic, boolean temporary) -
Method Summary
Modifier and TypeMethodDescriptionbuildFromProperties(Map<String, String> props) Set the properties that will represent the instance in JNDIintcompareTo(JmsDestination other) booleaninthashCode()booleanisQueue()booleanbooleanisTopic()protected voidpopulateProperties(Map<String, String> props) Initialize the instance from properties stored in JNDIvoidvoidsetAddress(String address) toString()voidMethods inherited from class org.apache.qpid.jms.jndi.JNDIStorable
getProperties, getProperty, getReference, setProperties
-
Field Details
-
address
-
topic
protected transient boolean topic -
temporary
protected transient boolean temporary -
hashValue
protected transient int hashValue -
connection
-
-
Constructor Details
-
JmsDestination
-
-
Method Details
-
toString
-
getAddress
- Returns:
- address of destination
-
setAddress
-
isTopic
public boolean isTopic()- Returns:
- the topic
-
isTemporary
public boolean isTemporary()- Returns:
- the temporary
-
isQueue
public boolean isQueue()- Returns:
- true if a Topic
-
buildFromProperties
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
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
- 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:
-
equals
-
hashCode
public int hashCode() -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classJNDIStorable- Throws:
IOException- See Also:
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classJNDIStorable- Throws:
IOExceptionClassNotFoundException- See Also:
-