Interface SocketConnectorHandler

    • Field Detail

      • DEFAULT_CONNECTION_TIMEOUT

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

      • connect

        java.util.concurrent.Future<Connection> connect​(java.lang.String host,
                                                        int port)
                                                 throws java.io.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:
        java.io.IOException - not actually thrown