Interface MessageFactory<T extends MessageBuffer,M extends Message<T>>

Type Parameters:
T - the type of the message buffer
M - the type of the message
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MessageFactory<T extends MessageBuffer,M extends Message<T>>
A factory interface for creating messages from a given message buffer.
Since:
2.9.2
  • Method Summary

    Modifier and Type
    Method
    Description
    create(T buffer)
    Creates a new message from the provided buffer.
  • Method Details

    • create

      M create(T buffer)
      Creates a new message from the provided buffer.
      Parameters:
      buffer - the buffer to create the message from
      Returns:
      a new message created from the buffer