Package org.apache.ignite.plugin.extensions.communication

## Interface MessageSerializer

-     public interface MessageSerializer

  Interface for message serialization logic.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `readFrom​(Message msg, MessageReader reader)` | Reads this message from provided byte buffer.
    `boolean` | `writeTo​(Message msg, MessageWriter writer)` | Writes this message to provided byte buffer.

- - ### Method Detail

    - #### writeTo

          boolean writeTo​(Message msg,
                          MessageWriter writer)

      Writes this message to provided byte buffer.
      Parameters:
        `msg` - Message instance.
        `writer` - Writer.
      Returns:
        Whether message was fully written.

    - #### readFrom

          boolean readFrom​(Message msg,
                           MessageReader reader)

      Reads this message from provided byte buffer.
      Parameters:
        `msg` - Message instance.
        `reader` - Reader.
      Returns:
        Whether message was fully read.