org.exolab.jms.client
Class JmsTopicSubscriber

java.lang.Object
  |
  +--org.exolab.jms.client.JmsMessageConsumer
        |
        +--org.exolab.jms.client.JmsTopicSubscriber
All Implemented Interfaces:
javax.jms.MessageConsumer, javax.jms.MessageListener, javax.jms.TopicSubscriber

public class JmsTopicSubscriber
extends JmsMessageConsumer
implements javax.jms.TopicSubscriber

This class extends JmsMessageConsumer to define a message consumer specific to a topic.

Version:
$Revision: 1.9 $ $Date: 2003/01/23 04:32:20 $
Author:
Jim Alateras

Fields inherited from class org.exolab.jms.client.JmsMessageConsumer
_session
 
Method Summary
 void close()
           
 void destroy()
          Release all resources used by this consumer
 JmsDestination getJmsDestination()
          This is an anstratc message that returns a reference to the destination
 java.lang.String getName()
          Return the name of the durable subscriber
 boolean getNoLocal()
           
 javax.jms.Topic getTopic()
           
 boolean isDurableSubscriber()
          Return true if this a durable subscriber and false otherwise
 
Methods inherited from class org.exolab.jms.client.JmsMessageConsumer
getClientId, getConsumerId, getLastMessageDelivered, getMessageListener, getMessageSelector, isClosed, onMessage, receive, receive, receiveNoWait, retrieveMessage, setMessageListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.MessageConsumer
getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
 

Method Detail

getTopic

public javax.jms.Topic getTopic()
                         throws javax.jms.JMSException
Specified by:
getTopic in interface javax.jms.TopicSubscriber

getNoLocal

public boolean getNoLocal()
                   throws javax.jms.JMSException
Specified by:
getNoLocal in interface javax.jms.TopicSubscriber

getName

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

isDurableSubscriber

public boolean isDurableSubscriber()
Return true if this a durable subscriber and false otherwise
Returns:
boolean

close

public void close()
           throws javax.jms.JMSException
Specified by:
close in interface javax.jms.MessageConsumer
Overrides:
close in class JmsMessageConsumer

destroy

public void destroy()
             throws javax.jms.JMSException
Description copied from class: JmsMessageConsumer
Release all resources used by this consumer
Overrides:
destroy in class JmsMessageConsumer
Following copied from class: org.exolab.jms.client.JmsMessageConsumer
Throws:
javax.jms.JMSException -  

getJmsDestination

public JmsDestination getJmsDestination()
Description copied from class: JmsMessageConsumer
This is an anstratc message that returns a reference to the destination
Overrides:
getJmsDestination in class JmsMessageConsumer
Following copied from class: org.exolab.jms.client.JmsMessageConsumer
Returns:
JmsDestination


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