|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.mock.jms.MockMessageConsumer com.mockrunner.mock.jms.MockTopicSubscriber
public class MockTopicSubscriber
Mock implementation of JMS TopicSubscriber
.
Constructor Summary | |
---|---|
MockTopicSubscriber(MockConnection connection,
MockSession session,
MockTopic topic)
|
|
MockTopicSubscriber(MockConnection connection,
MockSession session,
MockTopic topic,
java.lang.String messageSelector,
boolean noLocal)
|
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the name of the subscription if the subscription is durable. |
boolean |
getNoLocal()
|
javax.jms.Topic |
getTopic()
|
boolean |
isDurable()
Returns if this subscriber is durable. |
javax.jms.Message |
receive()
|
void |
setDurable(boolean isDurable)
Set if this subscriber is durable. |
void |
setName(java.lang.String name)
Set the name of the subscription. |
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 |
---|
public MockTopicSubscriber(MockConnection connection, MockSession session, MockTopic topic)
public MockTopicSubscriber(MockConnection connection, MockSession session, MockTopic topic, java.lang.String messageSelector, boolean noLocal)
Method Detail |
---|
public boolean isDurable()
true
if this subscriber is durablepublic void setDurable(boolean isDurable)
isDurable
- is this a durable subscriber?public java.lang.String getName()
null
.
public void setName(java.lang.String name)
name
- the name of this subscriberpublic javax.jms.Topic getTopic() throws javax.jms.JMSException
getTopic
in interface javax.jms.TopicSubscriber
javax.jms.JMSException
public boolean getNoLocal() throws javax.jms.JMSException
getNoLocal
in interface javax.jms.TopicSubscriber
javax.jms.JMSException
public javax.jms.Message receive() throws javax.jms.JMSException
receive
in interface javax.jms.MessageConsumer
javax.jms.JMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |