Package com.example.client.sender
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 TypeMethodDescriptionboolean
sendMessage
(BodyMessage bodyMessage) Sends a message with the specified BodyMessage payload.
-
Method Details
-
sendMessage
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
-