Class WebSocketHandler.WebsocketTuple

  • Enclosing interface:
    WebSocketHandler

    public static class WebSocketHandler.WebsocketTuple
    extends Object
    Represents the web socket message and its type.
    • Constructor Detail

      • WebsocketTuple

        public WebsocketTuple​(long length,
                              WebSocketHandler.WebSocketMessageType type)
        Creates an instance with the given length and type.
        Parameters:
        length - Length of the segment.
        type - Type of the socket message.
    • Method Detail

      • setLength

        public void setLength​(long length)
        Sets the length of the message.
        Parameters:
        length - The length of the message.
      • getLength

        public long getLength()
        Gets the length of the message.
        Returns:
        The length of the message.