Class ServiceBusInterface


  • public class ServiceBusInterface
    extends Object
    Author:
    ehsan.matean
    • Constructor Detail

      • ServiceBusInterface

        public ServiceBusInterface()
    • Method Detail

      • testServicebusInterface

        public static void testServicebusInterface​(ServiceObject serviceObject)
                                            throws Exception
        interface for database calls
        Parameters:
        serviceObject -
        Throws:
        Exception
      • sendServiceBusMessage

        public static void sendServiceBusMessage​(ServiceObject serviceObject,
                                                 String messageId)
                                          throws InterruptedException,
                                                 com.microsoft.azure.servicebus.primitives.ServiceBusException
        send rabbitMq message
        Parameters:
        apiObject -
        Throws:
        com.microsoft.azure.servicebus.primitives.ServiceBusException
        InterruptedException
      • evaluateOption

        public static void evaluateOption​(ServiceObject serviceObject)
      • closeConnection

        public static void closeConnection()
        close connection
      • getOutboundMessages

        public static void getOutboundMessages()
                                        throws Exception
        gets message from outbound queue Adds messages to ouboutMessage hashmap
        Parameters:
        receiver -
        Throws:
        Exception