Interface MessageSender

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void sendMessage​(java.lang.String requestId, byte[] message, java.util.Map<java.lang.String,​java.lang.String> messageAttributes)
      Method to use to send a message
    • Method Detail

      • sendMessage

        void sendMessage​(java.lang.String requestId,
                         byte[] message,
                         java.util.Map<java.lang.String,​java.lang.String> messageAttributes)
                  throws java.io.IOException,
                         MessageProcessingException,
                         MessageContentException
        Method to use to send a message
        Parameters:
        requestId - the requestId.
        message - the message data to send.
        messageAttributes - meta data related to the message such as reply-to queues or correlation id etc if underlying implementation supports it.
        Throws:
        java.io.IOException - if communication problems occurred when communicating with underlying system.
        MessageProcessingException - if internal problems occurred sending the message.
        MessageContentException - if message content invalid.