接口 MessagePayloadFactory
-
public interface MessagePayloadFactoryThe factory class ofMessagePayload.
-
-
字段概要
字段 修饰符和类型 字段 说明 static MessagePayloadFactoryDEFAULT
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 MessagePayloadwrap(byte[] bytes)Create a payload whose underlying buffer refers to a byte array.MessagePayloadwrap(java.nio.ByteBuffer buffer)Create a payload whose underlying buffer refers to a NIO buffer.
-
-
-
字段详细资料
-
DEFAULT
static final MessagePayloadFactory DEFAULT
-
-
方法详细资料
-
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
-
-