com.mockrunner.mock.jms
Class MockTopicSession

java.lang.Object
  extended by com.mockrunner.mock.jms.MockSession
      extended by com.mockrunner.mock.jms.MockTopicSession
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable, javax.jms.Session, javax.jms.TopicSession

public class MockTopicSession
extends MockSession
implements javax.jms.TopicSession

Mock implementation of JMS TopicSession.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED
 
Constructor Summary
MockTopicSession(MockTopicConnection connection)
           
MockTopicSession(MockTopicConnection connection, boolean transacted, int acknowledgeMode)
           
 
Method Summary
protected  javax.jms.MessageProducer createProducerForNullDestination()
           
 javax.jms.TopicPublisher createPublisher(javax.jms.Topic topic)
           
 javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic)
           
 javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic, java.lang.String messageSelector, boolean noLocal)
           
 
Methods inherited from class com.mockrunner.mock.jms.MockSession
addSessionToQueue, addSessionToTopic, close, commit, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, getAcknowledgeMode, getConnection, getGenericTransmissionManager, getMessageListener, getMessageManager, getNumberCommits, getNumberRollbacks, getQueueTransmissionManager, getTemporaryQueue, getTemporaryQueueList, getTemporaryTopic, getTemporaryTopicList, getTopicTransmissionManager, getTransacted, getTransmissionManager, getTransmissionManagerWrapper, isAutoAcknowledge, isClosed, isCommitted, isRecovered, isRolledBack, recover, rollback, run, setMessageListener, unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.TopicSession
createDurableSubscriber, createDurableSubscriber, createTemporaryTopic, createTopic, unsubscribe
 
Methods inherited from interface javax.jms.Session
close, commit, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, getTransacted, recover, rollback, run, setMessageListener
 

Constructor Detail

MockTopicSession

public MockTopicSession(MockTopicConnection connection)

MockTopicSession

public MockTopicSession(MockTopicConnection connection,
                        boolean transacted,
                        int acknowledgeMode)
Method Detail

createPublisher

public javax.jms.TopicPublisher createPublisher(javax.jms.Topic topic)
                                         throws javax.jms.JMSException
Specified by:
createPublisher in interface javax.jms.TopicSession
Throws:
javax.jms.JMSException

createSubscriber

public javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic)
                                           throws javax.jms.JMSException
Specified by:
createSubscriber in interface javax.jms.TopicSession
Throws:
javax.jms.JMSException

createSubscriber

public javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic,
                                                  java.lang.String messageSelector,
                                                  boolean noLocal)
                                           throws javax.jms.JMSException
Specified by:
createSubscriber in interface javax.jms.TopicSession
Throws:
javax.jms.JMSException

createProducerForNullDestination

protected javax.jms.MessageProducer createProducerForNullDestination()
Overrides:
createProducerForNullDestination in class MockSession