public class ServiceBusInterface extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.rabbitmq.client.Channel |
channel |
static com.rabbitmq.client.Connection |
connection |
static String |
SERVICEBUS_CONNECTION_STR |
static String |
SERVICEBUS_HOST |
static String |
SERVICEBUS_MESSAGE_ID_PREFIX |
static String |
SERVICEBUS_OUTBOUND_QUEUE |
static String |
SERVICEBUS_OUTBOUND_TOPIC |
static String |
SERVICEBUS_QUEUE |
static String |
SERVICEBUS_TOPIC |
| Constructor and Description |
|---|
ServiceBusInterface() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeConnection()
close connection
|
static void |
evaluateOption(ServiceObject serviceObject) |
static void |
getOutboundMessages()
gets message from outbound queue Adds messages to ouboutMessage hashmap
|
static void |
sendServiceBusMessage(ServiceObject serviceObject,
String messageId)
send rabbitMq message
|
static void |
testServicebusInterface(ServiceObject serviceObject)
interface for database calls
|
public static final String SERVICEBUS_CONNECTION_STR
public static final String SERVICEBUS_QUEUE
public static final String SERVICEBUS_OUTBOUND_QUEUE
public static final String SERVICEBUS_TOPIC
public static final String SERVICEBUS_OUTBOUND_TOPIC
public static final String SERVICEBUS_HOST
public static final String SERVICEBUS_MESSAGE_ID_PREFIX
public static com.rabbitmq.client.Connection connection
public static com.rabbitmq.client.Channel channel
public static void testServicebusInterface(ServiceObject serviceObject) throws Exception
serviceObject - Exceptionpublic static void sendServiceBusMessage(ServiceObject serviceObject, String messageId) throws InterruptedException, com.microsoft.azure.servicebus.primitives.ServiceBusException
apiObject - com.microsoft.azure.servicebus.primitives.ServiceBusExceptionInterruptedExceptionpublic static void evaluateOption(ServiceObject serviceObject)
public static void closeConnection()
Copyright © 2022. All rights reserved.