From e1de83475f5d4d76b8d4ad2c15e16a740058a994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Sun, 23 Apr 2023 16:44:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../c1_\345\237\272\347\241\200/HelloClient.java" | 8 ++++++++ .../c1_\345\237\272\347\241\200/HelloServer.java" | 8 ++++++++ .../TestEventLoop_01_EventLoopGroup.java" | 2 +- .../TestEventLoop_02_submit.java" | 2 +- .../TestEventLoop_03_scheduleAtFixedRate.java" | 2 +- .../TestEventLoop_04_Client.java" | 8 ++++++++ .../TestEventLoop_04_server.java" | 2 +- .../TestEventLoop_05_group.java" | 2 +- 8 files changed, 29 insertions(+), 5 deletions(-) diff --git "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c1_\345\237\272\347\241\200/HelloClient.java" "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c1_\345\237\272\347\241\200/HelloClient.java" index 70bd53a..d0560b5 100644 --- "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c1_\345\237\272\347\241\200/HelloClient.java" +++ "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c1_\345\237\272\347\241\200/HelloClient.java" @@ -8,6 +8,14 @@ import io.netty.handler.codec.string.StringEncoder; import java.net.InetSocketAddress; + +/** + * 客户端 + * + * @author : qinyingjie + * @version : 2.2.0 + * @date : 2023/4/23 16:42 + */ public class HelloClient { public static void main(String[] args) throws InterruptedException { //1.启动类 diff --git "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c1_\345\237\272\347\241\200/HelloServer.java" "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c1_\345\237\272\347\241\200/HelloServer.java" index 68c6e1e..ffefa32 100644 --- "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c1_\345\237\272\347\241\200/HelloServer.java" +++ "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c1_\345\237\272\347\241\200/HelloServer.java" @@ -9,6 +9,14 @@ import io.netty.channel.socket.nio.NioServerSocketChannel; import io.netty.channel.socket.nio.NioSocketChannel; import io.netty.handler.codec.string.StringDecoder; + +/** + * 服务端 + * + * @author : qinyingjie + * @version : 2.2.0 + * @date : 2023/4/23 16:42 + */ public class HelloServer { public static void main(String[] args) { //启动器,负责组装netty组件 diff --git "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_01_EventLoopGroup.java" "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_01_EventLoopGroup.java" index 9ddd124..6afa7d3 100644 --- "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_01_EventLoopGroup.java" +++ "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_01_EventLoopGroup.java" @@ -7,7 +7,7 @@ import io.netty.channel.nio.NioEventLoopGroup; import lombok.extern.slf4j.Slf4j; /** - * 测试EventLoop + * 测试EventLoopGroup * * @author : qinyingjie * @version : 2.2.0 diff --git "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_02_submit.java" "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_02_submit.java" index 7695320..2e08339 100644 --- "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_02_submit.java" +++ "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_02_submit.java" @@ -7,7 +7,7 @@ import io.netty.channel.nio.NioEventLoopGroup; import lombok.extern.slf4j.Slf4j; /** - * 测试EventLoop + * 提交普通任务 * * @author : qinyingjie * @version : 2.2.0 diff --git "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_03_scheduleAtFixedRate.java" "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_03_scheduleAtFixedRate.java" index 25cec7b..889fe6d 100644 --- "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_03_scheduleAtFixedRate.java" +++ "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_03_scheduleAtFixedRate.java" @@ -8,7 +8,7 @@ import lombok.extern.slf4j.Slf4j; import java.util.concurrent.TimeUnit; /** - * 测试EventLoop + * 执行定时任务 * * @author : qinyingjie * @version : 2.2.0 diff --git "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_04_Client.java" "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_04_Client.java" index cabb12a..deab4b6 100644 --- "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_04_Client.java" +++ "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_04_Client.java" @@ -8,6 +8,14 @@ import io.netty.handler.codec.string.StringEncoder; import java.net.InetSocketAddress; + +/** + * 客户端 + * + * @author : qinyingjie + * @version : 2.2.0 + * @date : 2023/4/23 16:43 + */ public class TestEventLoop_04_Client { public static void main(String[] args) throws InterruptedException { //1.启动类 diff --git "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_04_server.java" "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_04_server.java" index a3837c5..2dfde60 100644 --- "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_04_server.java" +++ "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_04_server.java" @@ -14,7 +14,7 @@ import lombok.extern.slf4j.Slf4j; import java.nio.charset.Charset; /** - * 测试EventLoop + * 服务端 * * @author : qinyingjie * @version : 2.2.0 diff --git "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_05_group.java" "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_05_group.java" index 8d6bec9..4023fd6 100644 --- "a/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_05_group.java" +++ "b/src/main/java/com/kwan/shuyu/heima/netty_04_netty/c2_\347\273\204\344\273\266/TestEventLoop_05_group.java" @@ -11,7 +11,7 @@ import lombok.extern.slf4j.Slf4j; import java.nio.charset.Charset; /** - * 测试EventLoop + * NioEventLoopGroup * * @author : qinyingjie * @version : 2.2.0 -- GitLab