public interface DatagramBufferFactory
DatagramBufferFactory
instances
are passed to the encoding methods of MulticastRequestEncoder
and
MulticastAnnouncementEncoder
, which can encode data to multiple
datagram packets (if needed) by writing to multiple buffers obtained from
the factory.Modifier and Type | Method and Description |
---|---|
ByteBuffer |
newBuffer()
Returns a byte buffer into which to write encoded multicast packet data.
|
ByteBuffer newBuffer()
0
corresponds to the start of packet data, and the
capacity of the buffer indicates the maximum packet size. Encoding
methods should start writing data at the initial (non-zero) position of
the buffer; the final position of the buffer after the encoding method
has returned is used to mark the end of encoded data, which translates
into the actual length of the sent packet.Copyright © GigaSpaces.