org.fusesource.stomp.jms
Class StompJmsDestination
java.lang.Object
org.fusesource.stomp.jms.jndi.JNDIStorable
org.fusesource.stomp.jms.StompJmsDestination
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.lang.Comparable<StompJmsDestination>, javax.jms.Destination, javax.naming.Referenceable
- Direct Known Subclasses:
- StompJmsQueue, StompJmsTempQueue, StompJmsTempTopic, StompJmsTopic
public class StompJmsDestination
- extends JNDIStorable
- implements java.io.Externalizable, javax.jms.Destination, java.lang.Comparable<StompJmsDestination>
Jms Destination
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
prefix
protected transient java.lang.String prefix
physicalName
protected transient java.lang.String physicalName
topic
protected transient boolean topic
temporary
protected transient boolean temporary
hashValue
protected transient int hashValue
toString
protected transient java.lang.String toString
buffer
protected transient org.fusesource.hawtbuf.AsciiBuffer buffer
subscribeHeaders
protected transient java.util.Map<java.lang.String,java.lang.String> subscribeHeaders
StompJmsDestination
public StompJmsDestination()
StompJmsDestination
public StompJmsDestination(java.lang.String name)
StompJmsDestination
public StompJmsDestination(java.lang.String prefix,
java.lang.String name)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
toBuffer
public org.fusesource.hawtbuf.AsciiBuffer toBuffer()
getPrefix
public java.lang.String getPrefix()
setPrefix
public void setPrefix(java.lang.String prefix)
getPhysicalName
public java.lang.String getPhysicalName()
- Returns:
- name of destination
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 void buildFromProperties(java.util.Map<java.lang.String,java.lang.String> props)
- Description copied from class:
JNDIStorable
- Set the properties that will represent the instance in JNDI
- Specified by:
buildFromProperties in class JNDIStorable
- Parameters:
props -
populateProperties
protected void populateProperties(java.util.Map<java.lang.String,java.lang.String> props)
- Description copied from class:
JNDIStorable
- Initialize the instance from properties stored in JNDI
- Specified by:
populateProperties in class JNDIStorable
- Parameters:
props -
compareTo
public int compareTo(StompJmsDestination other)
- Specified by:
compareTo in interface java.lang.Comparable<StompJmsDestination>
- 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)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable- Overrides:
writeExternal in class JNDIStorable
- Throws:
java.io.IOException- See Also:
Externalizable.writeExternal(java.io.ObjectOutput)
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable- Overrides:
readExternal in class JNDIStorable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException- See Also:
Externalizable.readExternal(java.io.ObjectInput)
createDestination
public static StompJmsDestination createDestination(StompJmsConnection connection,
java.lang.String name)
throws javax.jms.InvalidDestinationException
- Throws:
javax.jms.InvalidDestinationException
getSubscribeHeaders
public java.util.Map<java.lang.String,java.lang.String> getSubscribeHeaders()
setSubscribeHeaders
public void setSubscribeHeaders(java.util.Map<java.lang.String,java.lang.String> subscribeHeaders)
Copyright © 2010-2012 FuseSource, Corp.. All Rights Reserved.