@@ -51,6 +51,7 @@ void configureDefaults() {
51
51
idleConnectionInPoolTimeoutInMs = Integer .getInteger (ASYNC_CLIENT + "defaultIdleConnectionInPoolTimeoutInMS" , 60 * 1000 );
52
52
idleConnectionTimeoutInMs = Integer .getInteger (ASYNC_CLIENT + "defaultIdleConnectionTimeoutInMS" , 60 * 1000 );
53
53
requestTimeoutInMs = Integer .getInteger (ASYNC_CLIENT + "defaultRequestTimeoutInMS" , 60 * 1000 );
54
+ maxConnectionLifeTimeInMs = Integer .getInteger (ASYNC_CLIENT + "defaultMaxConnectionLifeTimeInMs" , -1 );
54
55
redirectEnabled = Boolean .getBoolean (ASYNC_CLIENT + "defaultRedirectsEnabled" );
55
56
maxDefaultRedirects = Integer .getInteger (ASYNC_CLIENT + "defaultMaxRedirects" , 5 );
56
57
compressionEnabled = Boolean .getBoolean (ASYNC_CLIENT + "compressionEnabled" );
@@ -99,6 +100,11 @@ public AsyncHttpClientConfigBean setConnectionTimeOutInMs(int connectionTimeOutI
99
100
return this ;
100
101
}
101
102
103
+ public AsyncHttpClientConfigBean setMaxConnectionLifeTimeInMs (int maxConnectionLifeTimeInMs ) {
104
+ this .maxConnectionLifeTimeInMs = maxConnectionLifeTimeInMs ;
105
+ return this ;
106
+ }
107
+
102
108
public AsyncHttpClientConfigBean setIdleConnectionInPoolTimeoutInMs (int idleConnectionInPoolTimeoutInMs ) {
103
109
this .idleConnectionInPoolTimeoutInMs = idleConnectionInPoolTimeoutInMs ;
104
110
return this ;
@@ -124,6 +130,11 @@ public AsyncHttpClientConfigBean setMaxDefaultRedirects(int maxDefaultRedirects)
124
130
return this ;
125
131
}
126
132
133
+ public AsyncHttpClientConfigBean setStrict302Handling (boolean strict302Handling ) {
134
+ this .strict302Handling = strict302Handling ;
135
+ return this ;
136
+ }
137
+
127
138
public AsyncHttpClientConfigBean setCompressionEnabled (boolean compressionEnabled ) {
128
139
this .compressionEnabled = compressionEnabled ;
129
140
return this ;
0 commit comments