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 NioMessageNioMessage. 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.NioMessageNioMessage. setArray(byte[] b, int offset, int length)Sets the internal buffer to point to a subset of a given buffer.NioMessageNioMessage. setArray(ByteArray b)Sets the bufferNioMessageNioMessage. setBuf(java.nio.ByteBuffer b)NioMessageNioMessage. setObject(java.lang.Object obj)Takes an object and uses Java serialization to generate the byte[] buffer which is set in the message.NioMessageNioMessage. useDirectMemory(boolean b)
-