@@ -110,14 +110,18 @@ public static H2RequesterBootstrap bootstrap() {
110
110
111
111
/**
112
112
* Sets I/O reactor configuration.
113
+ *
114
+ * @return this instance.
113
115
*/
114
116
public final H2RequesterBootstrap setIOReactorConfig (final IOReactorConfig ioReactorConfig ) {
115
117
this .ioReactorConfig = ioReactorConfig ;
116
118
return this ;
117
119
}
118
120
119
121
/**
120
- * Assigns {@link HttpProcessor} instance.
122
+ * Sets {@link HttpProcessor} instance.
123
+ *
124
+ * @return this instance.
121
125
*/
122
126
public final H2RequesterBootstrap setHttpProcessor (final HttpProcessor httpProcessor ) {
123
127
this .httpProcessor = httpProcessor ;
@@ -126,6 +130,8 @@ public final H2RequesterBootstrap setHttpProcessor(final HttpProcessor httpProce
126
130
127
131
/**
128
132
* Sets HTTP protocol version policy
133
+ *
134
+ * @return this instance.
129
135
*/
130
136
public final H2RequesterBootstrap setVersionPolicy (final HttpVersionPolicy versionPolicy ) {
131
137
this .versionPolicy = versionPolicy ;
@@ -134,6 +140,8 @@ public final H2RequesterBootstrap setVersionPolicy(final HttpVersionPolicy versi
134
140
135
141
/**
136
142
* Sets HTTP/2 protocol parameters
143
+ *
144
+ * @return this instance.
137
145
*/
138
146
public final H2RequesterBootstrap setH2Config (final H2Config h2Config ) {
139
147
this .h2Config = h2Config ;
@@ -142,6 +150,8 @@ public final H2RequesterBootstrap setH2Config(final H2Config h2Config) {
142
150
143
151
/**
144
152
* Sets HTTP/1.1 protocol parameters
153
+ *
154
+ * @return this instance.
145
155
*/
146
156
public final H2RequesterBootstrap setHttp1Config (final Http1Config http1Config ) {
147
157
this .http1Config = http1Config ;
@@ -150,6 +160,8 @@ public final H2RequesterBootstrap setHttp1Config(final Http1Config http1Config)
150
160
151
161
/**
152
162
* Sets message char coding.
163
+ *
164
+ * @return this instance.
153
165
*/
154
166
public final H2RequesterBootstrap setCharCodingConfig (final CharCodingConfig charCodingConfig ) {
155
167
this .charCodingConfig = charCodingConfig ;
@@ -172,15 +184,19 @@ public final H2RequesterBootstrap setTimeToLive(final TimeValue timeToLive) {
172
184
}
173
185
174
186
/**
175
- * Assigns {@link PoolReusePolicy} instance.
187
+ * Sets {@link PoolReusePolicy} instance.
188
+ *
189
+ * @return this instance.
176
190
*/
177
191
public final H2RequesterBootstrap setPoolReusePolicy (final PoolReusePolicy poolReusePolicy ) {
178
192
this .poolReusePolicy = poolReusePolicy ;
179
193
return this ;
180
194
}
181
195
182
196
/**
183
- * Assigns {@link PoolConcurrencyPolicy} instance.
197
+ * Sets {@link PoolConcurrencyPolicy} instance.
198
+ *
199
+ * @return this instance.
184
200
*/
185
201
@ Experimental
186
202
public final H2RequesterBootstrap setPoolConcurrencyPolicy (final PoolConcurrencyPolicy poolConcurrencyPolicy ) {
@@ -189,7 +205,9 @@ public final H2RequesterBootstrap setPoolConcurrencyPolicy(final PoolConcurrency
189
205
}
190
206
191
207
/**
192
- * Assigns {@link TlsStrategy} instance.
208
+ * Sets {@link TlsStrategy} instance.
209
+ *
210
+ * @return this instance.
193
211
*/
194
212
public final H2RequesterBootstrap setTlsStrategy (final TlsStrategy tlsStrategy ) {
195
213
this .tlsStrategy = tlsStrategy ;
@@ -202,55 +220,69 @@ public final H2RequesterBootstrap setHandshakeTimeout(final Timeout handshakeTim
202
220
}
203
221
204
222
/**
205
- * Assigns {@link IOSession} {@link Decorator} instance.
223
+ * Sets {@link IOSession} {@link Decorator} instance.
224
+ *
225
+ * @return this instance.
206
226
*/
207
227
public final H2RequesterBootstrap setIOSessionDecorator (final Decorator <IOSession > ioSessionDecorator ) {
208
228
this .ioSessionDecorator = ioSessionDecorator ;
209
229
return this ;
210
230
}
211
231
212
232
/**
213
- * Assigns {@link Exception} {@link Callback} instance.
233
+ * Sets {@link Exception} {@link Callback} instance.
234
+ *
235
+ * @return this instance.
214
236
*/
215
237
public final H2RequesterBootstrap setExceptionCallback (final Callback <Exception > exceptionCallback ) {
216
238
this .exceptionCallback = exceptionCallback ;
217
239
return this ;
218
240
}
219
241
220
242
/**
221
- * Assigns {@link IOSessionListener} instance.
243
+ * Sets {@link IOSessionListener} instance.
244
+ *
245
+ * @return this instance.
222
246
*/
223
247
public final H2RequesterBootstrap setIOSessionListener (final IOSessionListener sessionListener ) {
224
248
this .sessionListener = sessionListener ;
225
249
return this ;
226
250
}
227
251
228
252
/**
229
- * Assigns {@link H2StreamListener} instance.
253
+ * Sets {@link H2StreamListener} instance.
254
+ *
255
+ * @return this instance.
230
256
*/
231
257
public final H2RequesterBootstrap setStreamListener (final H2StreamListener streamListener ) {
232
258
this .streamListener = streamListener ;
233
259
return this ;
234
260
}
235
261
236
262
/**
237
- * Assigns {@link Http1StreamListener} instance.
263
+ * Sets {@link Http1StreamListener} instance.
264
+ *
265
+ * @return this instance.
238
266
*/
239
267
public final H2RequesterBootstrap setStreamListener (final Http1StreamListener http1StreamListener ) {
240
268
this .http1StreamListener = http1StreamListener ;
241
269
return this ;
242
270
}
243
271
244
272
/**
245
- * Assigns {@link ConnPoolListener} instance.
273
+ * Sets {@link ConnPoolListener} instance.
274
+ *
275
+ * @return this instance.
246
276
*/
247
277
public final H2RequesterBootstrap setConnPoolListener (final ConnPoolListener <HttpHost > connPoolListener ) {
248
278
this .connPoolListener = connPoolListener ;
249
279
return this ;
250
280
}
251
281
252
282
/**
253
- * Assigns {@link UriPatternType} for handler registration.
283
+ * Sets {@link UriPatternType} for handler registration.
284
+ *
285
+ * @return this instance.
254
286
*/
255
287
public final H2RequesterBootstrap setUriPatternType (final UriPatternType uriPatternType ) {
256
288
this .uriPatternType = uriPatternType ;
@@ -263,6 +295,7 @@ public final H2RequesterBootstrap setUriPatternType(final UriPatternType uriPatt
263
295
*
264
296
* @param uriPattern the pattern to register the handler for.
265
297
* @param supplier the handler supplier.
298
+ * @return this instance.
266
299
*/
267
300
public final H2RequesterBootstrap register (final String uriPattern , final Supplier <AsyncPushConsumer > supplier ) {
268
301
Args .notBlank (uriPattern , "URI pattern" );
@@ -278,6 +311,7 @@ public final H2RequesterBootstrap register(final String uriPattern, final Suppli
278
311
* @param hostname the host name
279
312
* @param uriPattern the pattern to register the handler for.
280
313
* @param supplier the handler supplier.
314
+ * @return this instance.
281
315
*
282
316
* @since 5.3
283
317
*/
0 commit comments