Interface MessageHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canHandle​(String messageType)
      Tells the caller if the message type can be handled by this handler
      void handle​(String messageType, com.fifa.connectservicebus.sdk.Message message)
      Handles the message
    • Method Detail

      • canHandle

        boolean canHandle​(String messageType)
        Tells the caller if the message type can be handled by this handler
        Parameters:
        messageType - A textual identifier of the message type
        Returns:
        true if the message handler can handle the message type, false otherwise
      • handle

        void handle​(String messageType,
                    com.fifa.connectservicebus.sdk.Message message)
             throws Exception
        Handles the message
        Parameters:
        messageType - A textual identifier of the message type
        message - Message to handle
        Throws:
        Exception