public interface MessagePayloadFactory
MessagePayload.| Modifier and Type | Field and Description |
|---|---|
static MessagePayloadFactory |
DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
MessagePayload |
wrap(byte[] bytes)
Create a payload whose underlying buffer refers to a byte array.
|
MessagePayload |
wrap(ByteBuffer buffer)
Create a payload whose underlying buffer refers to a NIO buffer.
|
static final MessagePayloadFactory DEFAULT
MessagePayload wrap(byte[] bytes)
bytes - the byte arrayMessagePayload wrap(ByteBuffer buffer)
buffer - the NIO bufferCopyright © 2017–2021 Apache Software Foundation. All rights reserved.