com.mockrunner.mock.jms
Class MockQueueSender
java.lang.Object
com.mockrunner.mock.jms.MockMessageProducer
com.mockrunner.mock.jms.MockQueueSender
- All Implemented Interfaces:
- java.io.Serializable, javax.jms.MessageProducer, javax.jms.QueueSender
public class MockQueueSender
- extends MockMessageProducer
- implements javax.jms.QueueSender
Mock implementation of JMS QueueSender
.
- See Also:
- Serialized Form
Method Summary |
javax.jms.Queue |
getQueue()
|
void |
send(javax.jms.Message message)
|
void |
send(javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
|
void |
send(javax.jms.Queue queue,
javax.jms.Message message)
|
void |
send(javax.jms.Queue queue,
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, 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, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive |
MockQueueSender
public MockQueueSender(MockConnection connection,
MockSession session,
MockQueue queue)
getQueue
public javax.jms.Queue getQueue()
throws javax.jms.JMSException
- Specified by:
getQueue
in interface javax.jms.QueueSender
- Throws:
javax.jms.JMSException
send
public void send(javax.jms.Message message)
throws javax.jms.JMSException
- Specified by:
send
in interface javax.jms.MessageProducer
- Specified by:
send
in interface javax.jms.QueueSender
- Overrides:
send
in class MockMessageProducer
- Throws:
javax.jms.JMSException
send
public void send(javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
throws javax.jms.JMSException
- Specified by:
send
in interface javax.jms.MessageProducer
- Specified by:
send
in interface javax.jms.QueueSender
- Overrides:
send
in class MockMessageProducer
- Throws:
javax.jms.JMSException
send
public void send(javax.jms.Queue queue,
javax.jms.Message message)
throws javax.jms.JMSException
- Specified by:
send
in interface javax.jms.QueueSender
- Throws:
javax.jms.JMSException
send
public void send(javax.jms.Queue queue,
javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
throws javax.jms.JMSException
- Specified by:
send
in interface javax.jms.QueueSender
- Throws:
javax.jms.JMSException