![JAR search and dependency download from the Maven repository](/logo.png)
com.capitalone.dashboard.collecteur.RestOperationsSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gitlab-git-collector Show documentation
Show all versions of gitlab-git-collector Show documentation
Gitlab Collector Microservice collecting stats from Git
The newest version!
package com.capitalone.dashboard.collecteur;
import com.capitalone.dashboard.util.Supplier;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestOperations;
import org.springframework.web.client.RestTemplate;
/**
* Created by benathmane on 23/06/16.
*/
@Component
public class RestOperationsSupplier implements Supplier {
@Override
public RestOperations get() {
HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();
requestFactory.setConnectTimeout(20000);
requestFactory.setReadTimeout(20000);
return new RestTemplate(requestFactory);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy