接口 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.
-
字段详细资料
-
DEFAULT
-
-
方法详细资料
-
wrap
Create a payload whose underlying buffer refers to a byte array.- 参数:
bytes
- the byte array- 返回:
- the created MessagePayload object
-
wrap
Create a payload whose underlying buffer refers to a NIO buffer.- 参数:
buffer
- the NIO buffer- 返回:
- the created MessagePayload object
-