Search in sources :

Example 1 with ClientConfig

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);
}
Also used : HttpDiskNodeClient(com.bonree.brfs.disknode.client.HttpDiskNodeClient) ClientConfig(com.bonree.brfs.common.net.http.client.ClientConfig)

Aggregations

ClientConfig (com.bonree.brfs.common.net.http.client.ClientConfig)1 HttpDiskNodeClient (com.bonree.brfs.disknode.client.HttpDiskNodeClient)1