Class TcpClientParameters

    • Method Detail

      • isAutoReconnect

        public boolean isAutoReconnect()
        Returns whether automatic reconnection is enabled.
        Returns:
        true if automatic reconnection is enabled; false otherwise
      • getConnectionTimeout

        public int getConnectionTimeout()
        Returns the amount of time allowed for establishing a TCP connection.
        Returns:
        the connection timeout in milliseconds
      • getReconnectDelay

        public int getReconnectDelay()
        Returns the amount of time to wait between TCP reconnection attempts.
        Returns:
        the reconnect delay in milliseconds
      • getTcpClientEventHandlers

        public List<TcpClientEventHandler> getTcpClientEventHandlers()
        Returns the TCP client event handlers registered with this configuration.

        The returned list is unmodifiable.

        Returns:
        the registered TCP client event handlers
      • getSocketOptions

        public TcpClientSocketOptions getSocketOptions()
        Returns the socket options used to configure the TCP client's socket.
        Returns:
        the TCP client socket options