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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 tomessageSelector - not yet supportednoLocal - 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