com.mockrunner.mock.jms
Class MockQueueReceiver
java.lang.Object
com.mockrunner.mock.jms.MockMessageConsumer
com.mockrunner.mock.jms.MockQueueReceiver
- All Implemented Interfaces:
- java.io.Serializable, javax.jms.MessageConsumer, javax.jms.QueueReceiver
public class MockQueueReceiver
- extends MockMessageConsumer
- implements javax.jms.QueueReceiver
Mock implementation of JMS QueueReceiver
.
- See Also:
- Serialized Form
Methods inherited from class com.mockrunner.mock.jms.MockMessageConsumer |
canConsume, close, getConnection, getMessageFilter, getMessageListener, getMessageSelector, isClosed, receive, receiveMessage, receiveNoWait, setMessageListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.MessageConsumer |
close, getMessageListener, getMessageSelector, receive, receiveNoWait, setMessageListener |
MockQueueReceiver
public MockQueueReceiver(MockConnection connection,
MockQueueSession session,
MockQueue queue)
MockQueueReceiver
public MockQueueReceiver(MockConnection connection,
MockSession session,
MockQueue queue,
java.lang.String messageSelector)
getQueue
public javax.jms.Queue getQueue()
throws javax.jms.JMSException
- Specified by:
getQueue
in interface javax.jms.QueueReceiver
- Throws:
javax.jms.JMSException
receive
public javax.jms.Message receive()
throws javax.jms.JMSException
- Specified by:
receive
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException