Skip to content

Commit bd48f53

Browse files
committed
Verifying the http default values
1 parent 12aaaae commit bd48f53

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

aws-core/src/main/java/software/amazon/awssdk/awscore/config/options/AwsAdvancedClientOption.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
package software.amazon.awssdk.awscore.config.options;
1717

18-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
1918
import software.amazon.awssdk.annotations.SdkPublicApi;
2019
import software.amazon.awssdk.awscore.client.builder.AwsClientBuilder;
2120
import software.amazon.awssdk.core.config.ClientOverrideConfiguration.Builder;
@@ -31,7 +30,6 @@
3130
*
3231
* @param <T> The type of value associated with the option.
3332
*/
34-
@ReviewBeforeRelease("Ensure that all of these options are actually advanced.")
3533
@SdkPublicApi
3634
public final class AwsAdvancedClientOption<T> extends SdkAdvancedClientOption<T> {
3735

core/src/main/java/software/amazon/awssdk/core/SdkSystemSetting.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ public enum SdkSystemSetting implements SystemSetting {
7575
*/
7676
AWS_REGION("aws.region", null),
7777

78-
/**
79-
* Whether the default configuration applied to AWS clients should be optimized for services within the same region.
80-
* This will usually include lower request timeouts because requests do not need to travel outside of the AWS network.
81-
*/
82-
AWS_IN_REGION_OPTIMIZATION_ENABLED("aws.inRegionOptimizationEnabled", "false"),
83-
8478
/**
8579
* Whether to load information such as credentials, regions from EC2 Metadata instance service.
8680
*/

core/src/main/java/software/amazon/awssdk/core/config/options/SdkAdvancedClientOption.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
*
3030
* @param <T> The type of value associated with the option.
3131
*/
32-
@ReviewBeforeRelease("Ensure that all of these options are actually advanced.")
3332
@SdkPublicApi
3433
public class SdkAdvancedClientOption<T> extends ClientOption<T> {
3534
/**

http-client-spi/src/main/java/software/amazon/awssdk/http/SdkHttpConfigurationOption.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public final class SdkHttpConfigurationOption<T> extends AttributeMap.Key<T> {
8787
private static final Boolean DEFAULT_USE_STRICT_HOSTNAME_VERIFICATION = Boolean.TRUE;
8888
private static final Boolean DEFAULT_TRUST_ALL_CERTIFICATES = Boolean.FALSE;
8989

90-
@ReviewBeforeRelease("Confirm defaults")
9190
public static final AttributeMap GLOBAL_HTTP_DEFAULTS = AttributeMap
9291
.builder()
9392
.put(READ_TIMEOUT, DEFAULT_SOCKET_READ_TIMEOUT)

http-clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/internal/Defaults.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,20 @@
1616
package software.amazon.awssdk.http.apache.internal;
1717

1818
import java.time.Duration;
19-
import software.amazon.awssdk.annotations.ReviewBeforeRelease;
2019

2120
/**
2221
* Default configuration values.
2322
*/
24-
@ReviewBeforeRelease("These values")
2523
public final class Defaults {
2624

25+
/**
26+
* The default maximum idle time (in milliseconds) for a connection to be idle in the connection pool and
27+
* still be eligible for reuse.
28+
*/
2729
public static final Duration MAX_IDLE_CONNECTION_TIME = Duration.ofSeconds(60);
2830

2931
/**
32+
* The default expiration time for a connection in the connection pool.
3033
* A value of -1 means infinite TTL in Apache.
3134
*/
3235
public static final Duration CONNECTION_POOL_TTL = Duration.ofMillis(-1);

0 commit comments

Comments
 (0)