接口 MessagePayloadFactory


  • public interface MessagePayloadFactory
    The factory class of MessagePayload.
    • 方法详细资料

      • 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​(java.nio.ByteBuffer buffer)
        Create a payload whose underlying buffer refers to a NIO buffer.
        参数:
        buffer - the NIO buffer
        返回:
        the created MessagePayload object