public class CamelTopicSubscriber extends CamelMessageConsumer implements TopicSubscriber
TopicSubscriber
which consumes message exchanges from a
Camel Endpoint
Constructor and Description |
---|
CamelTopicSubscriber(CamelTopic destination,
org.apache.camel.Endpoint endpoint,
ActiveMQSession session,
String name,
String messageSelector,
boolean noLocal) |
Modifier and Type | Method and Description |
---|---|
boolean |
getNoLocal()
Gets the
NoLocal attribute for this subscriber. |
Topic |
getTopic()
Gets the
Topic associated with this subscriber. |
checkClosed, close, createConsumer, createMessage, getDestination, getEndpoint, getMessageListener, getMessageSelector, getPollingConsumer, getSession, isNoLocal, receive, receive, receiveNoWait, setMessageListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener
public CamelTopicSubscriber(CamelTopic destination, org.apache.camel.Endpoint endpoint, ActiveMQSession session, String name, String messageSelector, boolean noLocal)
public Topic getTopic() throws JMSException
Topic
associated with this subscriber.getTopic
in interface TopicSubscriber
Topic
JMSException
- if the JMS provider fails to get the topic for this topic
subscriber due to some internal error.public boolean getNoLocal() throws JMSException
NoLocal
attribute for this subscriber. The
default value for this attribute is false.getNoLocal
in interface TopicSubscriber
JMSException
- if the JMS provider fails to get the NoLocal
attribute for this topic subscriber due to some
internal error.Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.