org.mockejb.jms
Class MockConsumer
java.lang.Object
org.mockejb.jms.MockConsumer
- All Implemented Interfaces:
- javax.jms.MessageConsumer
- Direct Known Subclasses:
- QueueReceiverImpl, TopicSubscriberImpl
- public class MockConsumer
- extends java.lang.Object
- implements javax.jms.MessageConsumer
- Author:
- Dimitar Gospodinov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMessageSelector
public java.lang.String getMessageSelector()
throws javax.jms.JMSException
- Specified by:
getMessageSelector
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
- See Also:
MessageConsumer.getMessageSelector()
getMessageListener
public javax.jms.MessageListener getMessageListener()
throws javax.jms.JMSException
- Specified by:
getMessageListener
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
- See Also:
MessageConsumer.getMessageListener()
setMessageListener
public void setMessageListener(javax.jms.MessageListener listener)
throws javax.jms.JMSException
- Specified by:
setMessageListener
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
- See Also:
MessageConsumer.setMessageListener(javax.jms.MessageListener)
receive
public javax.jms.Message receive()
throws javax.jms.JMSException
- Specified by:
receive
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
- See Also:
MessageConsumer.receive()
receive
public javax.jms.Message receive(long timeout)
throws javax.jms.JMSException
- Specified by:
receive
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
- See Also:
MessageConsumer.receive(long)
receiveNoWait
public javax.jms.Message receiveNoWait()
throws javax.jms.JMSException
- Specified by:
receiveNoWait
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
- See Also:
MessageConsumer.receiveNoWait()
close
public void close()
throws javax.jms.JMSException
- Specified by:
close
in interface javax.jms.MessageConsumer
- Throws:
javax.jms.JMSException
- See Also:
MessageConsumer.close()