| java.lang.Object com.mockrunner.mock.jms.MockMessageConsumer
All known Subclasses: com.mockrunner.mock.jms.MockTopicSubscriber, com.mockrunner.mock.jms.MockQueueReceiver,
MockMessageConsumer | abstract public class MockMessageConsumer implements MessageConsumer(Code) | | Mock implementation of JMS MessageConsumer .
|
canConsume | public boolean canConsume(Message message)(Code) | | Returns if this consumer can consume an incoming message,
i.e. if a MessageListener is registered,
the receiver isn't closed and has an approriate selector.
true if this receiver can consume the message |
close | public void close() throws JMSException(Code) | | |
getMessageListener | public MessageListener getMessageListener() throws JMSException(Code) | | |
getMessageSelector | public String getMessageSelector() throws JMSException(Code) | | |
isClosed | public boolean isClosed()(Code) | | Returns if this consumer was closed.
true if this consumer is closed |
receive | public Message receive(long timeout) throws JMSException(Code) | | |
receiveMessage | public void receiveMessage(Message message)(Code) | | Adds a message that is immediately propagated to the
message listener. If there's no message listener,
nothing happens.
Parameters: message - the message |
receiveNoWait | public Message receiveNoWait() throws JMSException(Code) | | |
setMessageListener | public void setMessageListener(MessageListener messageListener) throws JMSException(Code) | | |
|
|