public class RabbitMQProducerClient extends Object
| Constructor and Description |
|---|
RabbitMQProducerClient(String host,
int port,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
declareAndConnect(String exchangeName,
String routeKey) |
void |
disconnect() |
void |
sendBasicMessage(String message) |
void |
sendMessage(String message,
String contentType) |
public void declareAndConnect(String exchangeName, String routeKey) throws IOException
IOExceptionpublic void sendBasicMessage(String message) throws IOException
IOExceptionpublic void sendMessage(String message, String contentType) throws IOException
IOExceptionpublic void disconnect()
Copyright © 2015 WSO2 Inc. All rights reserved.