Uses of Class
org.jgroups.NioMessage
Packages that use NioMessage
Package
Description
Provides top-level public JGroups classes such as Channel, Message, etc.
-
Uses of NioMessage in org.jgroups
Methods in org.jgroups that return NioMessageModifier and TypeMethodDescriptionNioMessage.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.setArray(byte[] b, int offset, int length) Sets the internal buffer to point to a subset of a given buffer.Sets the bufferNioMessage.setBuf(ByteBuffer b) Takes an object and uses Java serialization to generate the byte[] buffer which is set in the message.NioMessage.useDirectMemory(boolean b)