Interface MessagePayloadFactory


  • public interface MessagePayloadFactory
    The factory class of MessagePayload.
    • Method Detail

      • wrap

        MessagePayload wrap​(byte[] bytes)
        Create a payload whose underlying buffer refers to a byte array.
        Parameters:
        bytes - the byte array
        Returns:
        the created MessagePayload object
      • wrap

        MessagePayload wrap​(java.nio.ByteBuffer buffer)
        Create a payload whose underlying buffer refers to a NIO buffer.
        Parameters:
        buffer - the NIO buffer
        Returns:
        the created MessagePayload object