public interface DatagramBufferFactory
DatagramBufferFactoryinstances are passed to the encoding methods of
MulticastAnnouncementEncoder, which can encode data to multiple datagram packets (if needed) by writing to multiple buffers obtained from the factory.
0corresponds 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.