Interface SocketConnectorHandler

    • Field Detail

      • DEFAULT_CONNECTION_TIMEOUT

        static final int DEFAULT_CONNECTION_TIMEOUT
        See Also:
        Constant Field Values
    • Method Detail

      • connect

        Future<Connection> connect​(String host,
                                   int port)
                            throws IOException
        Creates, initializes and connects socket to the specific remote host and port and returns Connection, representing socket.
        Parameters:
        host - remote host to connect to.
        port - remote port to connect to.
        Returns:
        Future of connect operation, which could be used to get resulting Connection.
        Throws:
        IOException - not actually thrown