You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client/src/main/java/org/asynchttpclient/AsyncHttpClientConfig.java
+26-48Lines changed: 26 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -29,64 +29,51 @@ public interface AsyncHttpClientConfig {
29
29
StringgetAhcVersion();
30
30
31
31
/**
32
-
* Return the name of {@link AsyncHttpClient}, which is used for thread
33
-
* naming and debugging.
32
+
* Return the name of {@link AsyncHttpClient}, which is used for thread naming and debugging.
34
33
*
35
34
* @return the name.
36
35
*/
37
36
StringgetThreadPoolName();
38
37
39
38
/**
40
-
* Return the maximum number of connections an {@link AsyncHttpClient} can
41
-
* handle.
39
+
* Return the maximum number of connections an {@link AsyncHttpClient} can handle.
42
40
*
43
-
* @return the maximum number of connections an {@link AsyncHttpClient} can
44
-
* handle.
41
+
* @return the maximum number of connections an {@link AsyncHttpClient} can handle.
45
42
*/
46
43
intgetMaxConnections();
47
44
48
45
/**
49
-
* Return the maximum number of connections per hosts an
50
-
* {@link AsyncHttpClient} can handle.
46
+
* Return the maximum number of connections per hosts an {@link AsyncHttpClient} can handle.
51
47
*
52
-
* @return the maximum number of connections per host an
53
-
* {@link AsyncHttpClient} can handle.
48
+
* @return the maximum number of connections per host an {@link AsyncHttpClient} can handle.
54
49
*/
55
50
intgetMaxConnectionsPerHost();
56
51
57
52
/**
58
-
* Return the maximum time in millisecond an {@link AsyncHttpClient} can
59
-
* wait when connecting to a remote host
53
+
* Return the maximum time in millisecond an {@link AsyncHttpClient} can wait when connecting to a remote host
60
54
*
61
-
* @return the maximum time in millisecond an {@link AsyncHttpClient} can
62
-
* wait when connecting to a remote host
55
+
* @return the maximum time in millisecond an {@link AsyncHttpClient} can wait when connecting to a remote host
63
56
*/
64
57
intgetConnectTimeout();
65
58
66
59
/**
67
-
* Return the maximum time in millisecond an {@link AsyncHttpClient} can
68
-
* stay idle.
60
+
* Return the maximum time in millisecond an {@link AsyncHttpClient} can stay idle.
69
61
*
70
-
* @return the maximum time in millisecond an {@link AsyncHttpClient} can
71
-
* stay idle.
62
+
* @return the maximum time in millisecond an {@link AsyncHttpClient} can stay idle.
72
63
*/
73
64
intgetReadTimeout();
74
65
75
66
/**
76
-
* Return the maximum time in millisecond an {@link AsyncHttpClient} will
77
-
* keep connection in pool.
67
+
* Return the maximum time in millisecond an {@link AsyncHttpClient} will keep connection in pool.
78
68
*
79
-
* @return the maximum time in millisecond an {@link AsyncHttpClient} will
80
-
* keep connection in pool.
69
+
* @return the maximum time in millisecond an {@link AsyncHttpClient} will keep connection in pool.
81
70
*/
82
71
intgetPooledConnectionIdleTimeout();
83
72
84
73
/**
85
-
* Return the maximum time in millisecond an {@link AsyncHttpClient} waits
86
-
* until the response is completed.
74
+
* Return the maximum time in millisecond an {@link AsyncHttpClient} waits until the response is completed.
87
75
*
88
-
* @return the maximum time in millisecond an {@link AsyncHttpClient} waits
89
-
* until the response is completed.
76
+
* @return the maximum time in millisecond an {@link AsyncHttpClient} waits until the response is completed.
90
77
*/
91
78
intgetRequestTimeout();
92
79
@@ -126,13 +113,10 @@ public interface AsyncHttpClientConfig {
126
113
booleanisCompressionEnforced();
127
114
128
115
/**
129
-
* Return the {@link java.util.concurrent.ThreadFactory} an
130
-
* {@link AsyncHttpClient} use for handling asynchronous response.
116
+
* Return the {@link java.util.concurrent.ThreadFactory} an {@link AsyncHttpClient} use for handling asynchronous response.
131
117
*
132
-
* @return the {@link java.util.concurrent.ThreadFactory} an
133
-
* {@link AsyncHttpClient} use for handling asynchronous response.
134
-
* If no {@link ThreadFactory} has been explicitly provided, this
135
-
* method will return <code>null</code>
118
+
* @return the {@link java.util.concurrent.ThreadFactory} an {@link AsyncHttpClient} use for handling asynchronous response. If no {@link ThreadFactory} has been explicitly
119
+
* provided, this method will return <code>null</code>
136
120
*/
137
121
ThreadFactorygetThreadFactory();
138
122
@@ -179,11 +163,9 @@ public interface AsyncHttpClientConfig {
179
163
List<IOExceptionFilter> getIoExceptionFilters();
180
164
181
165
/**
182
-
* Return the number of time the library will retry when an
183
-
* {@link java.io.IOException} is throw by the remote server
166
+
* Return the number of time the library will retry when an {@link java.io.IOException} is throw by the remote server
184
167
*
185
-
* @return the number of time the library will retry when an
186
-
* {@link java.io.IOException} is throw by the remote server
168
+
* @return the number of time the library will retry when an {@link java.io.IOException} is throw by the remote server
187
169
*/
188
170
intgetMaxRequestRetry();
189
171
@@ -193,28 +175,22 @@ public interface AsyncHttpClientConfig {
193
175
booleanisDisableUrlEncodingForBoundRequests();
194
176
195
177
/**
196
-
* In the case of a POST/Redirect/Get scenario where the server uses a 302
197
-
* for the redirect, should AHC respond to the redirect with a GET or
198
-
* whatever the original method was. Unless configured otherwise, for a 302,
199
-
* AHC, will use a GET for this case.
178
+
* In the case of a POST/Redirect/Get scenario where the server uses a 302 for the redirect, should AHC respond to the redirect with a GET or whatever the original method was.
179
+
* Unless configured otherwise, for a 302, AHC, will use a GET for this case.
200
180
*
201
-
* @return <code>true</code> if string 302 handling is to be used, otherwise
202
-
* <code>false</code>.
181
+
* @return <code>true</code> if string 302 handling is to be used, otherwise <code>false</code>.
203
182
*/
204
183
booleanisStrict302Handling();
205
184
206
185
/**
207
-
* Return the maximum time in millisecond an {@link AsyncHttpClient} will
208
-
* keep connection in the pool, or -1 to keep connection while possible.
186
+
* Return the maximum time in millisecond an {@link AsyncHttpClient} will keep connection in the pool, or -1 to keep connection while possible.
209
187
*
210
-
* @return the maximum time in millisecond an {@link AsyncHttpClient} will
211
-
* keep connection in the pool, or -1 to keep connection while
212
-
* possible.
188
+
* @return the maximum time in millisecond an {@link AsyncHttpClient} will keep connection in the pool, or -1 to keep connection while possible.
213
189
*/
214
190
intgetConnectionTtl();
215
191
216
192
booleanisUseOpenSsl();
217
-
193
+
218
194
booleanisAcceptAnyCertificate();
219
195
220
196
/**
@@ -279,6 +255,8 @@ public interface AsyncHttpClientConfig {
0 commit comments