Interface ClusterSerializable

    • Method Detail

      • writeToBuffer

        void writeToBuffer​(Buffer buffer)
        Method invoked when serializing this instance.
        Parameters:
        buffer - the Buffer where the serialized bytes must be written to
      • readFromBuffer

        int readFromBuffer​(int pos,
                           Buffer buffer)
        Method invoked when deserializing bytes to this instance.
        Parameters:
        pos - the position where to start reading the buffer
        buffer - the Buffer where the serialized bytes must be read from
        Returns:
        the position after the last serialized byte