cgl.narada.jms
Class JmsTopic

java.lang.Object
  extended by cgl.narada.jms.JmsTopic
All Implemented Interfaces:
JmsDebugFlags, Destination, TemporaryTopic, Topic
Direct Known Subclasses:
JmsTemporaryTopic

public class JmsTopic
extends Object
implements Topic, TemporaryTopic, JmsDebugFlags

A Topic object encapsulates a provider-specific topic name. It is the way a client specifies the identity of a topic to JMS API methods. Many publish/subscribe (pub/sub) providers group topics into hierarchies and provide various options for subscribing to parts of the hierarchy.


Field Summary
 
Fields inherited from interface cgl.narada.jms.JmsDebugFlags
JmsConnection_Debug, JmsDestination_Debug, JmsHeader_Debug, JmsLogger_Debug, JmsMessage_Debug, JmsObjectMessage_Debug, JmsProperties_Debug, JmsTextMessage_Debug, JmsTopic_Debug, JmsTopicAndSelectorVerifier_Debug, JmsTopicConnection_Debug, JmsTopicConnectionFactory_Debug, JmsTopicPublisher_Debug, JmsTopicSession_Debug, JmsTopicSubscriber_Debug
 
Constructor Summary
JmsTopic()
          Adding a null constructor for the derived classes
JmsTopic(byte[] topicBytes)
           
JmsTopic(String name)
           
 
Method Summary
 void delete()
           
 boolean equals(Object obj)
          Compares two objects for equality.
 byte[] getBytes()
           
 String getTopicName()
          Gets the name of this topic.
 int hashCode()
          Generates a hash code for the receiver.
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JmsTopic

public JmsTopic()
Adding a null constructor for the derived classes


JmsTopic

public JmsTopic(byte[] topicBytes)

JmsTopic

public JmsTopic(String name)
         throws JMSException
Throws:
JMSException
Method Detail

getTopicName

public String getTopicName()
                    throws JMSException
Gets the name of this topic.

Specified by:
getTopicName in interface Topic
Returns:
Gets the name of this topic.
Throws:
JMSException

toString

public String toString()
Specified by:
toString in interface Topic
Overrides:
toString in class Object

getBytes

public byte[] getBytes()

hashCode

public int hashCode()
Generates a hash code for the receiver. This method is supported primarily for hash tables, such as those provided in java.util. If two objects are equal (equals(Object) returns true) they must have the same hash code

Overrides:
hashCode in class Object
Returns:
an integer hash code for the receiver

equals

public boolean equals(Object obj)
Compares two objects for equality. Returns a boolean that indicates whether this object is equivalent to the specified object. This method is used when an object is stored in a hashtable.

Overrides:
equals in class Object
Parameters:
obj - the Object to compare with
Returns:
true if these Objects are equal; false otherwise.
See Also:
Hashtable

delete

public void delete()
            throws JMSException
Specified by:
delete in interface TemporaryTopic
Throws:
JMSException

main

public static void main(String[] args)


For comments and suggestions please send e-mail to The NaradaBrokering Project