public class ClientConfiguration extends Object
This class provides configuration options for client requests.
Modifier and Type | Class and Description |
---|---|
static class |
ClientConfiguration.ClientConfigurationBuilder |
Modifier and Type | Method and Description |
---|---|
static ClientConfiguration.ClientConfigurationBuilder |
builder() |
int |
getConnectionTimeoutMillis()
The max time to wait for a connection, in millis.
|
int |
getMaxAsyncThreads()
The max number of async threads to use.
|
int |
getReadTimeoutMillis()
The max time to wait for data, in millis.
|
RetryConfiguration |
getRetryConfiguration()
The retry configuration to use.
|
String |
toString() |
public static ClientConfiguration.ClientConfigurationBuilder builder()
public int getConnectionTimeoutMillis()
The max time to wait for a connection, in millis. Default is 10000.
public int getReadTimeoutMillis()
The max time to wait for data, in millis. Default is 60000;
public int getMaxAsyncThreads()
The max number of async threads to use. Default is 50;
public RetryConfiguration getRetryConfiguration()
The retry configuration to use. Default is no retry.
Copyright © 2016–2020. All rights reserved.