public interface Message
Message
that can be sent to a MessageChannel
.
To use this interface, consider the following example.
MessageChannel messageChannel = new MessageChannel();
messageChannel.sendMessage(new MyMessage("Hello, World!"));