com.mockrunner.mock.jms
Class MockQueueReceiver

java.lang.Object
  extended by com.mockrunner.mock.jms.MockMessageConsumer
      extended by 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

Constructor Summary
MockQueueReceiver(MockConnection connection, MockQueueSession session, MockQueue queue)
           
MockQueueReceiver(MockConnection connection, MockSession session, MockQueue queue, java.lang.String messageSelector)
           
 
Method Summary
 javax.jms.Queue getQueue()
           
 javax.jms.Message receive()
           
 
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
 

Constructor Detail

MockQueueReceiver

public MockQueueReceiver(MockConnection connection,
                         MockQueueSession session,
                         MockQueue queue)

MockQueueReceiver

public MockQueueReceiver(MockConnection connection,
                         MockSession session,
                         MockQueue queue,
                         java.lang.String messageSelector)
Method Detail

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