@Bean
    public PoolingHttpClientConnectionManager httpClientConnectionManager() {
        // Support HTTP, HTTPS
        Registry<ConnectionSocketFactory> registry = RegistryBuilder.<ConnectionSocketFactory>create()
                .register(ProtocolType.HTTP, PlainConnectionSocketFactory.getSocketFactory())
                .register(ProtocolType.HTTPS, SSLConnectionSocketFactory.getSocketFactory())
                .build();
        PoolingHttpClientConnectionManager httpClientConnectionManager = new PoolingHttpClientConnectionManager(
                registry);
        httpClientConnectionManager.setMaxTotal(maxTotal);
        httpClientConnectionManager.setDefaultMaxPerRoute(defaultMaxPerRoute);
        httpClientConnectionManager.setValidateAfterInactivity(validateAfterInactivity);

        return httpClientConnectionManager;
    }
Get the timeout time of the connection from the connection pool,
and throw ConnectionPoolTimeoutException when timeout
inlong-manager/manager-service/src/test/java/org/apache/inlong/manager/service/RestTemplateConfig.java