public class RabbitMqInterface extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.rabbitmq.client.Channel |
channel |
static com.rabbitmq.client.Connection |
connection |
static String |
RABBIT_MQ_EXCHANGE |
static String |
RABBIT_MQ_QUEUE |
| Constructor and Description |
|---|
RabbitMqInterface() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeConnection()
close connection
|
static void |
connectRabbitMq(ServiceObject serviceObject) |
static void |
evaluateOption(ServiceObject serviceObject) |
static void |
sendMessage(ServiceObject serviceObject)
send rabbitMq message
|
static void |
sendRabbitMqMessage(ServiceObject serviceObject) |
static void |
testRabbitMqInterface(ServiceObject serviceObject)
interface for database calls
|
public static final String RABBIT_MQ_EXCHANGE
public static final String RABBIT_MQ_QUEUE
public static com.rabbitmq.client.Connection connection
public static com.rabbitmq.client.Channel channel
public static void testRabbitMqInterface(ServiceObject serviceObject) throws Exception
serviceObject - Exceptionpublic static void connectRabbitMq(ServiceObject serviceObject)
Exceptionpublic static void sendRabbitMqMessage(ServiceObject serviceObject) throws Exception
apiObject - Exceptionpublic static void sendMessage(ServiceObject serviceObject)
apiObject - public static void evaluateOption(ServiceObject serviceObject)
public static void closeConnection()
Copyright © 2019. All rights reserved.