com.mockrunner.mock.jms
Class MockTopicPublisher
java.lang.Object
com.mockrunner.mock.jms.MockMessageProducer
com.mockrunner.mock.jms.MockTopicPublisher
- All Implemented Interfaces:
- java.io.Serializable, javax.jms.MessageProducer, javax.jms.TopicPublisher
public class MockTopicPublisher
- extends MockMessageProducer
- implements javax.jms.TopicPublisher
Mock implementation of JMS TopicPublisher
.
- See Also:
- Serialized Form
Method Summary |
javax.jms.Topic |
getTopic()
|
void |
publish(javax.jms.Message message)
|
void |
publish(javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
|
void |
publish(javax.jms.Topic topic,
javax.jms.Message message)
|
void |
publish(javax.jms.Topic topic,
javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
|
Methods inherited from class com.mockrunner.mock.jms.MockMessageProducer |
close, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, isClosed, send, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.MessageProducer |
close, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive |
MockTopicPublisher
public MockTopicPublisher(MockConnection connection,
MockSession session,
MockTopic topic)
getTopic
public javax.jms.Topic getTopic()
throws javax.jms.JMSException
- Specified by:
getTopic
in interface javax.jms.TopicPublisher
- Throws:
javax.jms.JMSException
publish
public void publish(javax.jms.Message message)
throws javax.jms.JMSException
- Specified by:
publish
in interface javax.jms.TopicPublisher
- Throws:
javax.jms.JMSException
publish
public void publish(javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
throws javax.jms.JMSException
- Specified by:
publish
in interface javax.jms.TopicPublisher
- Throws:
javax.jms.JMSException
publish
public void publish(javax.jms.Topic topic,
javax.jms.Message message)
throws javax.jms.JMSException
- Specified by:
publish
in interface javax.jms.TopicPublisher
- Throws:
javax.jms.JMSException
publish
public void publish(javax.jms.Topic topic,
javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
throws javax.jms.JMSException
- Specified by:
publish
in interface javax.jms.TopicPublisher
- Throws:
javax.jms.JMSException