| java.lang.Object com.mockrunner.mock.jms.MockMessageConsumer com.mockrunner.mock.jms.MockTopicSubscriber
MockTopicSubscriber | public class MockTopicSubscriber extends MockMessageConsumer implements TopicSubscriber(Code) | | Mock implementation of JMS TopicSubscriber .
|
Method Summary | |
public String | getName() Returns the name of the subscription if the subscription
is durable. | public boolean | getNoLocal() | public Topic | getTopic() | public boolean | isDurable() Returns if this subscriber is durable. | public Message | receive() | public void | setDurable(boolean isDurable) Set if this subscriber is durable. | public void | setName(String name) Set the name of the subscription. |
getName | public String getName()(Code) | | Returns the name of the subscription if the subscription
is durable. Otherwise, this method returns null .
the name of this subscriber |
getNoLocal | public boolean getNoLocal() throws JMSException(Code) | | |
getTopic | public Topic getTopic() throws JMSException(Code) | | |
isDurable | public boolean isDurable()(Code) | | Returns if this subscriber is durable.
true if this subscriber is durable |
receive | public Message receive() throws JMSException(Code) | | |
setDurable | public void setDurable(boolean isDurable)(Code) | | Set if this subscriber is durable. This is automatically
done when creating the subscriber.
Parameters: isDurable - is this a durable subscriber? |
setName | public void setName(String name)(Code) | | Set the name of the subscription.
Parameters: name - the name of this subscriber |
|
|