Interface MessageSender

All Known Implementing Classes:
BaseMessageSender

public interface MessageSender
The MessageSender interface defines methods for sending messages with the specified body message.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    sendMessage(BodyMessage bodyMessage)
    Sends a message with the specified BodyMessage payload.
  • Method Details

    • sendMessage

      boolean sendMessage(BodyMessage bodyMessage) throws IOException
      Sends a message with the specified BodyMessage payload.
      Parameters:
      bodyMessage - the BodyMessage containing the message payload
      Returns:
      true if the message is sent successfully, false otherwise
      Throws:
      IOException - if an error occurs while sending the message