public interface ContentStrategy
Modifier and Type | Field and Description |
---|---|
static ByteOrder |
CONTENT_ENDIANNESS
The endianness of any
prepareContent() 's ByteBuffer . |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
prepareContent()
Gets the message content to send.
|
static final ByteOrder CONTENT_ENDIANNESS
prepareContent()
's ByteBuffer
.ByteBuffer prepareContent()
The returned ByteBuffer
has ByteBuffer.hasArray()
true
and
ByteBuffer.order()
equals to CONTENT_ENDIANNESS
.
The Buffer.position()
and Buffer.limit()
delimit the content available to be sent.
Its content can be changed but cannot be used less then the provided Buffer.remaining()
size.
This documentation was released into the public domain.