use of com.bonree.brfs.common.net.http.client.ClientConfig in project BRFS by zhangnianli.
the class HttpDiskNodeConnection method connect.
public void connect() {
ClientConfig clientConfig = ClientConfig.builder().setResponseTimeout(DEFAULT_RESPONSE_TIMEOUT_MILLIS).setMaxConnectionPerRoute(MAX_CONNECTION_RER_ROUTE).setMaxConnection(MAX_CONNECTION_RER_ROUTE * 3).build();
client = new HttpDiskNodeClient(address, port, clientConfig);
}
Aggregations