Uses of Class
org.jgroups.NioMessage
-
Packages that use NioMessage Package Description org.jgroups Provides top-level public JGroups classes such as Channel, Message, etc. -
-
Uses of NioMessage in org.jgroups
Methods in org.jgroups that return NioMessage Modifier and Type Method Description NioMessage
NioMessage. copy(boolean copy_payload, boolean copy_headers)
Create a copy of the message.
Note that for headers, only the arrays holding references to the headers are copied, not the headers themselves ! The consequence is that the headers array of the copy hold the *same* references as the original, so do *not* modify the headers ! If you want to change a header, copy it and callBaseMessage.putHeader(short,Header)
again.NioMessage
NioMessage. setArray(byte[] b, int offset, int length)
Sets the internal buffer to point to a subset of a given buffer.NioMessage
NioMessage. setArray(ByteArray b)
Sets the bufferNioMessage
NioMessage. setBuf(java.nio.ByteBuffer b)
NioMessage
NioMessage. setObject(java.lang.Object obj)
Takes an object and uses Java serialization to generate the byte[] buffer which is set in the message.NioMessage
NioMessage. useDirectMemory(boolean b)
-