org.exolab.jms.client
Class JmsSessionType

java.lang.Object
  |
  +--org.exolab.jms.client.JmsSessionType
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public final class JmsSessionType
extends java.lang.Object
implements java.io.Externalizable

This class defines an enumeration for Session types.. QUEUE point to point session TOPIC public subscribe

Version:
$Revision: 1.4 $ $Date: 2003/08/07 13:32:50 $
Author:
Jim Alateras
See Also:
Serialized Form

Field Summary
static JmsSessionType QUEUE
          Instatiate instances related to each of the enumerations
static JmsSessionType TOPIC
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Return true iff the two specified object are of the same type and their ordinal values are identical.
 int getOrd()
          Returns the ordinal value for this state
 void readExternal(java.io.ObjectInput stream)
           
static int size()
          Returns the number of states in this enumeration
 java.lang.String toString()
          Returns the name of this session type
 void writeExternal(java.io.ObjectOutput stream)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUEUE

public static final JmsSessionType QUEUE
Instatiate instances related to each of the enumerations

TOPIC

public static final JmsSessionType TOPIC
Method Detail

getOrd

public int getOrd()
Returns the ordinal value for this state
Returns:
int

toString

public java.lang.String toString()
Returns the name of this session type
Overrides:
toString in class java.lang.Object
Returns:
String

size

public static int size()
Returns the number of states in this enumeration
Returns:
int

equals

public boolean equals(java.lang.Object obj)
Return true iff the two specified object are of the same type and their ordinal values are identical.
Overrides:
equals in class java.lang.Object
Parameters:
obj - object to compare against
Returns:
boolean true if objects are equivalent

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


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