jms4spread
Class TopicSession

java.lang.Object
  |
  +--jms4spread.Session
        |
        +--jms4spread.TopicSession

public class TopicSession
extends Session

A TopicSession provides methods for createting a TopicPublisher and TopicSubscriber


Fields inherited from class jms4spread.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OKAY_ACKNOWLEDGE
 
Method Summary
 TopicSubscriber createDurableSubscriber(Topic topic, java.lang.String name)
          Method Not Implemented
 TopicSubscriber createDurableSubscriber(Topic topic, java.lang.String name, java.lang.String messageSelector, boolean noLocal)
          Method Not Implemented
 TopicPublisher createPublisher(Topic t)
          Creates a TopicPublisher for given Topic.
 TopicSubscriber createSubscriber(Topic t)
          Creates a TopicSubscriber for given Topic.
 TopicSubscriber createSubscriber(Topic topic, java.lang.String messageSelector, boolean noLocal)
          Creates a TopicSubscriber for given Topic.
 Topic createTopic(java.lang.String topicName)
          creates a Topic
 
Methods inherited from class jms4spread.Session
createMapMessage, createObjectMessage, createStreamMessage, createTextMessage, createTextMessage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSubscriber

public TopicSubscriber createSubscriber(Topic t)
                                 throws JMSException
Creates a TopicSubscriber for given Topic.
Parameters:
topic - the Topic to subscribe to
Returns:
the TopicSubscriber
Throws:
JMSException - due to internal error - usually when spread is not running.

createPublisher

public TopicPublisher createPublisher(Topic t)
                               throws JMSException
Creates a TopicPublisher for given Topic.
Parameters:
topic - the Topic to publish to
Returns:
the TopicPublisher
Throws:
JMSException - due to internal error

createDurableSubscriber

public TopicSubscriber createDurableSubscriber(Topic topic,
                                               java.lang.String name)
                                        throws JMSException
Method Not Implemented

createDurableSubscriber

public TopicSubscriber createDurableSubscriber(Topic topic,
                                               java.lang.String name,
                                               java.lang.String messageSelector,
                                               boolean noLocal)
                                        throws JMSException
Method Not Implemented

createSubscriber

public TopicSubscriber createSubscriber(Topic topic,
                                        java.lang.String messageSelector,
                                        boolean noLocal)
                                 throws JMSException
Creates a TopicSubscriber for given Topic.
Parameters:
topic - the Topic to subscribe to
messageSelector - not yet supported
noLocal - if set, inhibits the delivery of its own message to itself. noLocal true not supported
Returns:
the TopicSubscriber
Throws:
JMSException - due to internal error - usually when spread is not running.

createTopic

public Topic createTopic(java.lang.String topicName)
creates a Topic
Returns:
Topic