public class TopicSubscriberImpl extends MessageConsumerImpl implements TopicSubscriber
_selector, _session
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the consumer.
|
java.lang.String |
getMessageSelector()
Returns the message consumer's selector.
|
boolean |
getNoLocal()
Returns true if local messages are not sent.
|
Topic |
getTopic() |
protected Message |
receiveImpl(long timeout)
Receives a message from the queue.
|
addMessageCallback, getDestination, getMessageListener, getSelector, isActive, isClosed, notifyMessageAvailable, receive, receive, receiveNoWait, setMessageListener, setMessageListener, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessageListener, receive, receive, receiveNoWait, setMessageListener
public java.lang.String getMessageSelector() throws JMSException
getMessageSelector
in interface MessageConsumer
getMessageSelector
in class MessageConsumerImpl
JMSException
public boolean getNoLocal() throws JMSException
getNoLocal
in interface TopicSubscriber
getNoLocal
in class MessageConsumerImpl
JMSException
public Topic getTopic() throws JMSException
getTopic
in interface TopicSubscriber
JMSException
protected Message receiveImpl(long timeout) throws JMSException
MessageConsumerImpl
receiveImpl
in class MessageConsumerImpl
JMSException
public void close()
MessageConsumerImpl
close
in interface MessageConsumer
close
in class MessageConsumerImpl