Interface MessageEncoderFactory<T>

Type Parameters:
T - the message type
All Known Implementing Classes:
DemuxingProtocolEncoder.DefaultConstructorMessageEncoderFactory, DemuxingProtocolEncoder.SingletonMessageEncoderFactory

public interface MessageEncoderFactory<T>
A factory that creates a new instance of MessageEncoder.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new message encoder.
  • Method Details

    • getEncoder

      MessageEncoder<T> getEncoder() throws Exception
      Creates a new message encoder.
      Returns:
      The created encoder
      Throws:
      Exception - If we weren't able to create an encoder