
com.mockrunner.mock.jms.MockQueueSender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockrunner-jms Show documentation
Show all versions of mockrunner-jms Show documentation
Mock classes for Java Messaging System
package com.mockrunner.mock.jms;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Queue;
import javax.jms.QueueSender;
/**
* Mock implementation of JMS QueueSender
.
*/
public class MockQueueSender extends MockMessageProducer implements QueueSender
{
public MockQueueSender(MockConnection connection, MockSession session, MockQueue queue)
{
super(connection, session, queue);
}
public Queue getQueue() throws JMSException
{
return (Queue)getDestination();
}
public void send(Message message) throws JMSException
{
super.send(message);
}
public void send(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
{
super.send(message, deliveryMode, priority, timeToLive);
}
public void send(Queue queue, Message message) throws JMSException
{
super.send(queue, message);
}
public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException
{
super.send(queue, message, deliveryMode, priority, timeToLive);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy