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

## Interface MessageFormatter

- All Superinterfaces:
    `Extension`

      public interface MessageFormatter
      extends Extension

  Provides a custom format for communication messages.

  A plugin can provide his own message factory as an extension to replace default format of communication messages.

  Note that only one custom formatter is allowed. If two plugins provide different formatters, exception will be thrown on node startup.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `MessageReader` | `reader​(MessageFactory msgFactory)` | Creates new message reader instance.
    `MessageWriter` | `writer​(MessageFactory msgFactory)` | Creates new message writer instance.

- - ### Method Detail

    - #### writer

          MessageWriter writer​(MessageFactory msgFactory)
                        throws IgniteCheckedException

      Creates new message writer instance.
      Parameters:
        `msgFactory` - Message factory.
      Returns:
        Message writer.
      Throws:
        `IgniteCheckedException` - In case of error.

    - #### reader

          MessageReader reader​(MessageFactory msgFactory)
                        throws IgniteCheckedException

      Creates new message reader instance.
      Parameters:
        `msgFactory` - Message factory.
      Returns:
        Message reader.
      Throws:
        `IgniteCheckedException` - In case of error.