File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
main/java/com/rabbitmq/stream/perf
test/java/com/rabbitmq/stream/perf Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 4848 <stream-client .version>0.24.0-SNAPSHOT</stream-client .version>
4949 <slf4j .version>2.0.17</slf4j .version>
5050 <logback .version>1.5.18</logback .version>
51- <netty .version>4.1.119 .Final</netty .version>
51+ <netty .version>4.2.0 .Final</netty .version>
5252 <metrics .version>4.2.30</metrics .version>
5353 <micrometer .version>1.14.5</micrometer .version>
5454 <picocli .version>4.7.6</picocli .version>
Original file line number Diff line number Diff line change 4646import io .netty .buffer .ByteBufAllocatorMetricProvider ;
4747import io .netty .channel .ChannelOption ;
4848import io .netty .channel .EventLoopGroup ;
49- import io .netty .channel .epoll .EpollEventLoopGroup ;
49+ import io .netty .channel .MultiThreadIoEventLoopGroup ;
50+ import io .netty .channel .epoll .EpollIoHandler ;
5051import io .netty .channel .epoll .EpollSocketChannel ;
51- import io .netty .channel .nio .NioEventLoopGroup ;
52+ import io .netty .channel .nio .NioIoHandler ;
5253import io .netty .handler .ssl .SslContextBuilder ;
5354import io .netty .handler .ssl .SslHandler ;
5455import io .netty .util .internal .PlatformDependent ;
@@ -933,10 +934,10 @@ public Integer call() throws Exception {
933934
934935 java .util .function .Consumer <Bootstrap > bootstrapCustomizer ;
935936 if (this .nativeEpoll ) {
936- this .eventLoopGroup = new EpollEventLoopGroup ( );
937+ this .eventLoopGroup = new MultiThreadIoEventLoopGroup ( EpollIoHandler . newFactory () );
937938 bootstrapCustomizer = b -> b .channel (EpollSocketChannel .class );
938939 } else {
939- this .eventLoopGroup = new NioEventLoopGroup ( );
940+ this .eventLoopGroup = new MultiThreadIoEventLoopGroup ( NioIoHandler . newFactory () );
940941 bootstrapCustomizer = b -> {};
941942 }
942943
Original file line number Diff line number Diff line change 2121
2222import com .rabbitmq .stream .impl .Client ;
2323import io .netty .channel .EventLoopGroup ;
24- import io .netty .channel .nio .NioEventLoopGroup ;
24+ import io .netty .channel .MultiThreadIoEventLoopGroup ;
25+ import io .netty .channel .nio .NioIoHandler ;
2526import java .lang .annotation .*;
2627import java .lang .reflect .Field ;
2728import java .lang .reflect .Method ;
@@ -234,7 +235,8 @@ static EventLoopGroup eventLoopGroup(ExtensionContext context) {
234235
235236 @ Override
236237 public void beforeAll (ExtensionContext context ) {
237- store (context ).put ("nettyEventLoopGroup" , new NioEventLoopGroup ());
238+ store (context )
239+ .put ("nettyEventLoopGroup" , new MultiThreadIoEventLoopGroup (NioIoHandler .newFactory ()));
238240 }
239241
240242 @ Override
You can’t perform that action at this time.
0 commit comments