Interface MessagePayloadFactory


public interface MessagePayloadFactory
The factory class of MessagePayload.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    wrap(byte[] bytes)
    Create a payload whose underlying buffer refers to a byte array.
    wrap(ByteBuffer buffer)
    Create a payload whose underlying buffer refers to a NIO buffer.
  • Field Details

  • Method Details

    • 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(ByteBuffer buffer)
      Create a payload whose underlying buffer refers to a NIO buffer.
      Parameters:
      buffer - the NIO buffer
      Returns:
      the created MessagePayload object