org.exolab.jms.client
Class JmsDestination

java.lang.Object
  |
  +--org.exolab.jms.message.DestinationImpl
        |
        +--org.exolab.jms.client.JmsDestination
All Implemented Interfaces:
java.lang.Cloneable, javax.jms.Destination, java.io.Externalizable, javax.naming.Referenceable, java.io.Serializable
Direct Known Subclasses:
JmsQueue, JmsTopic

public abstract class JmsDestination
extends DestinationImpl
implements javax.jms.Destination, java.io.Externalizable, javax.naming.Referenceable

This is the base class for all destinations.

Version:
$Revision: 1.12 $ $Date: 2003/08/17 01:32:21 $
Author:
Jim Alateras
See Also:
Serialized Form

Constructor Summary
  JmsDestination()
          Need a default constructor for the serialization
protected JmsDestination(java.lang.String name)
          Instantiate an instance of this object with the specified string
 
Method Summary
 java.lang.String getName()
          Return the name of the destination
 boolean getPersistent()
          Return the persistent state of this destination
 int hashCode()
           
 boolean isTemporaryDestination()
          This static method determines whether a particular string refers to a temporary destination.
static boolean isTemporaryDestination(DestinationImpl destination)
          This static method determines whether a particular DestinationImpl instance refers to a temporary destination.
 void readExternal(java.io.ObjectInput stream)
           
 void setPersistent(boolean flag)
          Determine whether the destination is persistent or not
 java.lang.String toString()
          Return a pretty printed version of the topic name.
 void writeExternal(java.io.ObjectOutput stream)
           
 
Methods inherited from class org.exolab.jms.message.DestinationImpl
clone, getDestination, isEqual
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Constructor Detail

JmsDestination

public JmsDestination()
Need a default constructor for the serialization

JmsDestination

protected JmsDestination(java.lang.String name)
Instantiate an instance of this object with the specified string
Parameters:
name - name of the destination
Method Detail

getName

public java.lang.String getName()
Return the name of the destination
Returns:
String

setPersistent

public void setPersistent(boolean flag)
Determine whether the destination is persistent or not
Parameters:
flag - true for persistent

getPersistent

public boolean getPersistent()
Return the persistent state of this destination
Returns:
boolean

toString

public java.lang.String toString()
Description copied from class: DestinationImpl
Return a pretty printed version of the topic name.
Overrides:
toString in class DestinationImpl
Following copied from class: org.exolab.jms.message.DestinationImpl
Returns:
the provider specific identity values for this topic.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

writeExternal

public void writeExternal(java.io.ObjectOutput stream)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class DestinationImpl

readExternal

public void readExternal(java.io.ObjectInput stream)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class DestinationImpl

isTemporaryDestination

public boolean isTemporaryDestination()
This static method determines whether a particular string refers to a temporary destination.
Parameters:
destination - destination to test
Returns:
boolean true if it is

isTemporaryDestination

public static boolean isTemporaryDestination(DestinationImpl destination)
This static method determines whether a particular DestinationImpl instance refers to a temporary destination.
Parameters:
destination - destination to test
Returns:
boolean true if it is


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.