接口 MessagePayloadFactory


public interface MessagePayloadFactory
The factory class of MessagePayload.
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    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.
  • 字段详细资料

  • 方法详细资料

    • wrap

      MessagePayload wrap(byte[] bytes)
      Create a payload whose underlying buffer refers to a byte array.
      参数:
      bytes - the byte array
      返回:
      the created MessagePayload object
    • wrap

      MessagePayload wrap(ByteBuffer buffer)
      Create a payload whose underlying buffer refers to a NIO buffer.
      参数:
      buffer - the NIO buffer
      返回:
      the created MessagePayload object