Class HttpClientProperties
- java.lang.Object
-
- org.apache.iceberg.aws.HttpClientProperties
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpClientProperties extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPACHE_CONNECTION_ACQUISITION_TIMEOUT_MSUsed to configure the connection acquisition timeout in milliseconds forApacheHttpClient.Builder.static java.lang.StringAPACHE_CONNECTION_MAX_IDLE_TIME_MSUsed to configure the connection max idle time in milliseconds forApacheHttpClient.Builder.static java.lang.StringAPACHE_CONNECTION_TIME_TO_LIVE_MSUsed to configure the connection time to live in milliseconds forApacheHttpClient.Builder.static java.lang.StringAPACHE_CONNECTION_TIMEOUT_MSUsed to configure the connection timeout in milliseconds forApacheHttpClient.Builder.static java.lang.StringAPACHE_EXPECT_CONTINUE_ENABLEDUsed to configure whether to enable the expect continue setting forApacheHttpClient.Builder.static java.lang.StringAPACHE_MAX_CONNECTIONSUsed to configure the max connections number forApacheHttpClient.Builder.static java.lang.StringAPACHE_SOCKET_TIMEOUT_MSUsed to configure the socket timeout in milliseconds forApacheHttpClient.Builder.static java.lang.StringAPACHE_TCP_KEEP_ALIVE_ENABLEDUsed to configure whether to enable the tcp keep alive setting forApacheHttpClient.Builder.static java.lang.StringAPACHE_USE_IDLE_CONNECTION_REAPER_ENABLEDUsed to configure whether to use idle connection reaper forApacheHttpClient.Builder.static java.lang.StringCLIENT_TYPEThe type ofSdkHttpClientimplementation used byAwsClientFactoryIf set, all AWS clients will use this specified HTTP client.static java.lang.StringCLIENT_TYPE_APACHEIf this is set underCLIENT_TYPE,ApacheHttpClientwill be used as the HTTP Client inAwsClientFactorystatic java.lang.StringCLIENT_TYPE_DEFAULTstatic java.lang.StringCLIENT_TYPE_URLCONNECTIONIf this is set underCLIENT_TYPE,UrlConnectionHttpClientwill be used as the HTTP Client inAwsClientFactorystatic java.lang.StringPROXY_ENDPOINTUsed to configure the proxy endpoint.static java.lang.StringURLCONNECTION_CONNECTION_TIMEOUT_MSUsed to configure the connection timeout in milliseconds forUrlConnectionHttpClient.Builder.static java.lang.StringURLCONNECTION_SOCKET_TIMEOUT_MSUsed to configure the socket timeout in milliseconds forUrlConnectionHttpClient.Builder.
-
Constructor Summary
Constructors Constructor Description HttpClientProperties()HttpClientProperties(java.util.Map<java.lang.String,java.lang.String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder>
voidapplyHttpClientConfigurations(T builder)Configure the httpClient for a client according to the HttpClientType.
-
-
-
Field Detail
-
CLIENT_TYPE
public static final java.lang.String CLIENT_TYPE
The type ofSdkHttpClientimplementation used byAwsClientFactoryIf set, all AWS clients will use this specified HTTP client. If not set,CLIENT_TYPE_DEFAULTwill be used. For specific types supported, see CLIENT_TYPE_* defined below.- See Also:
- Constant Field Values
-
CLIENT_TYPE_APACHE
public static final java.lang.String CLIENT_TYPE_APACHE
If this is set underCLIENT_TYPE,ApacheHttpClientwill be used as the HTTP Client inAwsClientFactory- See Also:
- Constant Field Values
-
CLIENT_TYPE_URLCONNECTION
public static final java.lang.String CLIENT_TYPE_URLCONNECTION
If this is set underCLIENT_TYPE,UrlConnectionHttpClientwill be used as the HTTP Client inAwsClientFactory- See Also:
- Constant Field Values
-
CLIENT_TYPE_DEFAULT
public static final java.lang.String CLIENT_TYPE_DEFAULT
- See Also:
- Constant Field Values
-
PROXY_ENDPOINT
public static final java.lang.String PROXY_ENDPOINT
Used to configure the proxy endpoint. Used by bothUrlConnectionHttpClient.BuilderandApacheHttpClient.Builder- See Also:
- Constant Field Values
-
URLCONNECTION_CONNECTION_TIMEOUT_MS
public static final java.lang.String URLCONNECTION_CONNECTION_TIMEOUT_MS
Used to configure the connection timeout in milliseconds forUrlConnectionHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_URLCONNECTIONFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/urlconnection/UrlConnectionHttpClient.Builder.html
- See Also:
- Constant Field Values
-
URLCONNECTION_SOCKET_TIMEOUT_MS
public static final java.lang.String URLCONNECTION_SOCKET_TIMEOUT_MS
Used to configure the socket timeout in milliseconds forUrlConnectionHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_URLCONNECTIONFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/urlconnection/UrlConnectionHttpClient.Builder.html
- See Also:
- Constant Field Values
-
APACHE_CONNECTION_TIMEOUT_MS
public static final java.lang.String APACHE_CONNECTION_TIMEOUT_MS
Used to configure the connection timeout in milliseconds forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html
- See Also:
- Constant Field Values
-
APACHE_SOCKET_TIMEOUT_MS
public static final java.lang.String APACHE_SOCKET_TIMEOUT_MS
Used to configure the socket timeout in milliseconds forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html
- See Also:
- Constant Field Values
-
APACHE_CONNECTION_ACQUISITION_TIMEOUT_MS
public static final java.lang.String APACHE_CONNECTION_ACQUISITION_TIMEOUT_MS
Used to configure the connection acquisition timeout in milliseconds forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html
- See Also:
- Constant Field Values
-
APACHE_CONNECTION_MAX_IDLE_TIME_MS
public static final java.lang.String APACHE_CONNECTION_MAX_IDLE_TIME_MS
Used to configure the connection max idle time in milliseconds forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html
- See Also:
- Constant Field Values
-
APACHE_CONNECTION_TIME_TO_LIVE_MS
public static final java.lang.String APACHE_CONNECTION_TIME_TO_LIVE_MS
Used to configure the connection time to live in milliseconds forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html
- See Also:
- Constant Field Values
-
APACHE_EXPECT_CONTINUE_ENABLED
public static final java.lang.String APACHE_EXPECT_CONTINUE_ENABLED
Used to configure whether to enable the expect continue setting forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEIn default, this is disabled.
For more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html
- See Also:
- Constant Field Values
-
APACHE_MAX_CONNECTIONS
public static final java.lang.String APACHE_MAX_CONNECTIONS
Used to configure the max connections number forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html
- See Also:
- Constant Field Values
-
APACHE_TCP_KEEP_ALIVE_ENABLED
public static final java.lang.String APACHE_TCP_KEEP_ALIVE_ENABLED
Used to configure whether to enable the tcp keep alive setting forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHE.In default, this is disabled.
For more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html
- See Also:
- Constant Field Values
-
APACHE_USE_IDLE_CONNECTION_REAPER_ENABLED
public static final java.lang.String APACHE_USE_IDLE_CONNECTION_REAPER_ENABLED
Used to configure whether to use idle connection reaper forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHE.In default, this is enabled.
For more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html
- See Also:
- Constant Field Values
-
-
Method Detail
-
applyHttpClientConfigurations
public <T extends software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder> void applyHttpClientConfigurations(T builder)
Configure the httpClient for a client according to the HttpClientType. The two supported HttpClientTypes are urlconnection and apacheSample usage:
S3Client.builder().applyMutation(awsProperties::applyHttpClientConfigurations)
-
-