public class AmqpTopicSubscriber extends AmqpTopicConnector implements TopicSubscriber
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
AmqpTopicSubscriber(MessageListener messageListener,
String topicName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
reconnect() |
void |
subscribe()
Subscribe to a topic with a message listener.
|
connect, create, disconnect, getServerURI, lookupTopic, newSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, create, disconnect, getServerURIpublic AmqpTopicSubscriber(MessageListener messageListener, String topicName)
public void subscribe()
TopicSubscribersubscribe in interface TopicSubscriberprotected void reconnect()
reconnect in class AmqpTopicConnectorCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.