public abstract class JmsDestination extends JNDIStorable implements Externalizable, javax.jms.Destination, Comparable<JmsDestination>
Modifier and Type | Field and Description |
---|---|
protected JmsConnection |
connection |
protected int |
hashValue |
protected String |
name |
protected boolean |
temporary |
protected boolean |
topic |
Modifier | Constructor and Description |
---|---|
protected |
JmsDestination(String name,
boolean topic,
boolean temporary) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
buildFromProperties(Map<String,String> props)
Set the properties that will represent the instance in JNDI
|
int |
compareTo(JmsDestination other) |
boolean |
equals(Object o) |
String |
getName() |
int |
hashCode() |
boolean |
isQueue() |
boolean |
isTemporary() |
boolean |
isTopic() |
protected void |
populateProperties(Map<String,String> props)
Initialize the instance from properties stored in JNDI
|
void |
readExternal(ObjectInput in) |
void |
setName(String name) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
getProperties, getProperty, getReference, setProperties
protected transient String name
protected transient boolean topic
protected transient boolean temporary
protected transient int hashValue
protected transient JmsConnection connection
protected JmsDestination(String name, boolean topic, boolean temporary)
public String getName()
public void setName(String name)
public boolean isTopic()
public boolean isTemporary()
public boolean isQueue()
protected Map<String,String> buildFromProperties(Map<String,String> props)
JNDIStorable
buildFromProperties
in class JNDIStorable
props
- The properties to use when building the new isntance.protected void populateProperties(Map<String,String> props)
JNDIStorable
populateProperties
in class JNDIStorable
props
- The properties to use when initializing the new instance.public int compareTo(JmsDestination other)
compareTo
in interface Comparable<JmsDestination>
other
- the Object to be compared.Comparable.compareTo(java.lang.Object)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class JNDIStorable
IOException
Externalizable.writeExternal(java.io.ObjectOutput)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class JNDIStorable
IOException
ClassNotFoundException
Externalizable.readExternal(java.io.ObjectInput)
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.