public class AmqpTopicPublisher extends AmqpTopicConnector implements TopicPublisher
| Constructor and Description |
|---|
AmqpTopicPublisher(String topicName) |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(String message,
boolean retry)
Publish message to message broker.
|
protected void |
reconnect() |
connect, create, disconnect, getServerURI, lookupTopic, newSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, create, disconnect, getServerURIpublic AmqpTopicPublisher(String topicName)
public void publish(String message, boolean retry)
publish in interface TopicPublishermessage - Message to be publishedretry - Retry if message broker is not availableprotected void reconnect()
reconnect in class AmqpTopicConnectorCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.