public class SolTopicSubscriber extends SolMessageConsumer implements TopicSubscriber
mConsumer| Modifier and Type | Method and Description |
|---|---|
boolean |
getNoLocal()
Gets the
NoLocal attribute for this subscriber. |
Topic |
getTopic()
Gets the
Topic associated with this subscriber. |
boolean |
isTemporaryQueueUsed(SolTemporaryQueueIF queue) |
boolean |
isTemporaryTopicUsed(SolTemporaryTopicIF topic) |
void |
setMessageListener(MessageListener listener)
Sets the message consumer's
MessageListener. |
close, getEndpoint, getMessageListener, getMessageSelector, isDurable, receive, receive, receiveNoWait, recover, setSolConsumerEventListener, start, startImpl, stop, stopSyncStart, stopSyncWaitequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getMessageListener, getMessageSelector, receive, receive, receiveNoWaitpublic boolean getNoLocal()
throws JMSException
TopicSubscriberNoLocal attribute for this subscriber.
The default value for this attribute is false.getNoLocal in interface SolMessageConsumerIFgetNoLocal in interface TopicSubscribergetNoLocal in class SolMessageConsumerJMSException - if the JMS provider fails to get the
NoLocal attribute for
this topic subscriber
due to some internal error.public Topic getTopic() throws JMSException
TopicSubscriberTopic associated with this subscriber.getTopic in interface TopicSubscriberTopicJMSException - if the JMS provider fails to get the topic for
this topic subscriber
due to some internal error.public void setMessageListener(MessageListener listener) throws JMSException
MessageConsumerMessageListener.
Setting the message listener to null is the equivalent of unsetting the message listener for the message consumer.
The effect of calling MessageConsumer.setMessageListener
while messages are being consumed by an existing listener
or the consumer is being used to consume messages synchronously
is undefined.
setMessageListener in interface MessageConsumerlistener - the listener to which the messages are to be
deliveredJMSException - if the JMS provider fails to set the message
listener due to some internal error.MessageConsumer.getMessageListener()public boolean isTemporaryQueueUsed(SolTemporaryQueueIF queue)
isTemporaryQueueUsed in interface SolMessageConsumerIFpublic boolean isTemporaryTopicUsed(SolTemporaryTopicIF topic)
isTemporaryTopicUsed in interface SolMessageConsumerIFCopyright 2004-2019 Solace Corporation. All rights reserved.