Class GridClientHandshakeRequest

  • All Implemented Interfaces:
    Externalizable, Serializable, GridClientMessage

    public class GridClientHandshakeRequest
    extends GridClientAbstractMessage
    A client handshake request, containing version info and a marshaller ID. A handshake request structure is as follows:
    1. Protocol version (2 bytes)
    2. Marshaller ID (2 bits)
    3. Reserved space (6 bits + 1 byte)
    4. Marshaller ID for backward compatibility (1 byte)
    See Also:
    Serialized Form
    • Constructor Detail

      • GridClientHandshakeRequest

        public GridClientHandshakeRequest()
    • Method Detail

      • version

        public short version()
        Returns:
        Protocol version.
      • marshallerId

        public byte marshallerId()
        Returns:
        Marshaller ID.
      • marshallerId

        public void marshallerId​(byte marshId)
        Parameters:
        marshId - Marshaller ID.
      • putBytes

        public void putBytes​(byte[] buf,
                             int off,
                             int len)
        Sets bytes from specified buffer to a given value.
        Parameters:
        buf - Buffer.
        off - Offset.
        len - Length.
      • rawBytes

        public byte[] rawBytes()
        Returns:
        Raw representation of this packet.