jrun.jms.core.client
Class JmsDestination

jrun.jms.core.client.JmsDestination
All Implemented Interfaces:
java.io.Externalizable, javax.naming.Referenceable, java.io.Serializable

public abstract class JmsDestination
implements java.io.Externalizable, javax.naming.Referenceable

This is the base class for all destinations. All desitnation have a name.

Version:
$Revision: 1.10 $ $Date: 2001/06/21 20:53:05 $
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
 boolean getDynamic()
          Return the dynamic state of this destination
 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 setDynamic(boolean flag)
          Determine whether the destination is dynamic or not
 void setPersistent(boolean flag)
          Determine whether the destination is persistent or not
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput stream)
           
 
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 queue
Method Detail

getName

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

setDynamic

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

getDynamic

public boolean getDynamic()
Return the dynamic state of this destination
Returns:
boolean

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()

hashCode

public int hashCode()

writeExternal

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

readExternal

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

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 � 2002 Macromedia Corporation. All Rights Reserved.