public RegistryConfig setTimeout(int timeout) {
        this.timeout = timeout;
        return this;
    }
Gets connect timeout.

@return the connect timeout
core/api/src/main/java/com/alipay/sofa/rpc/config/RegistryConfig.java