@@ -92,17 +92,6 @@ public interface EnvironmentBuilder {
92
92
*/
93
93
EnvironmentBuilder codec (Codec codec );
94
94
95
- /**
96
- * The Netty {@link EventLoopGroup} instance to use.
97
- *
98
- * <p>The environment uses its own instance by default. It is the developer's responsibility to
99
- * close the {@link EventLoopGroup} they provide.
100
- *
101
- * @param eventLoopGroup
102
- * @return this builder instance
103
- */
104
- EnvironmentBuilder eventLoopGroup (EventLoopGroup eventLoopGroup );
105
-
106
95
/**
107
96
* Informational ID for this environment instance.
108
97
*
@@ -198,6 +187,19 @@ public interface EnvironmentBuilder {
198
187
*/
199
188
EnvironmentBuilder requestedMaxFrameSize (int requestedMaxFrameSize );
200
189
190
+ /**
191
+ * The Netty {@link EventLoopGroup} instance to use.
192
+ *
193
+ * <p>The environment uses its own instance by default. It is the developer's responsibility to
194
+ * close the {@link EventLoopGroup} they provide.
195
+ *
196
+ * @param eventLoopGroup
197
+ * @return this builder instance
198
+ * @deprecated use {@link NettyConfiguration#eventLoopGroup(EventLoopGroup)} from {@link #netty()}
199
+ * instead
200
+ */
201
+ EnvironmentBuilder eventLoopGroup (EventLoopGroup eventLoopGroup );
202
+
201
203
/**
202
204
* Netty's {@link io.netty.buffer.ByteBuf} allocator.
203
205
*
@@ -408,6 +410,17 @@ interface TlsConfiguration {
408
410
/** Helper to configure Netty */
409
411
interface NettyConfiguration {
410
412
413
+ /**
414
+ * The {@link EventLoopGroup} instance to use.
415
+ *
416
+ * <p>The environment uses its own instance by default. It is the developer's responsibility to
417
+ * close the {@link EventLoopGroup} they provide.
418
+ *
419
+ * @param eventLoopGroup
420
+ * @return the Netty configuration helper
421
+ */
422
+ NettyConfiguration eventLoopGroup (EventLoopGroup eventLoopGroup );
423
+
411
424
/**
412
425
* Netty's {@link io.netty.buffer.ByteBuf} allocator.
413
426
*
0 commit comments