org.apache.ignite.plugin.extensions.communication

## Interface MessageFactory

- All Superinterfaces:
    Extension
  All Known Subinterfaces:
    IgniteMessageFactory, MessageFactoryProvider

  Deprecated.
  Use `MessageFactoryProvider` instead.

      @Deprecated
      public interface MessageFactory
      extends Extension

  Factory for communication messages.

  A plugin can provide his own message factory as an extension if it uses any custom messages (all message must extend `Message` class).

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `@Nullable Message` | `create(short type)` Deprecated. Creates new message instance of provided type.

- - ### Method Detail

    - #### create

          @Nullable
          @Nullable Message create(short type)

      Deprecated.
      Creates new message instance of provided type.

      This method should return `null` if provided message type is unknown to this factory.

      Parameters:
        `type` - Message type.
      Returns:
        Message instance.

${current.year} Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.16.0
Release Date | : December 15 2023