提交 e1de8347 编写于 作者: 檀越@新空间's avatar 檀越@新空间 🐭

fix:添加注释

上级 1bcc35c5
...@@ -8,6 +8,14 @@ import io.netty.handler.codec.string.StringEncoder; ...@@ -8,6 +8,14 @@ import io.netty.handler.codec.string.StringEncoder;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
/**
* 客户端
*
* @author : qinyingjie
* @version : 2.2.0
* @date : 2023/4/23 16:42
*/
public class HelloClient { public class HelloClient {
public static void main(String[] args) throws InterruptedException { public static void main(String[] args) throws InterruptedException {
//1.启动类 //1.启动类
......
...@@ -9,6 +9,14 @@ import io.netty.channel.socket.nio.NioServerSocketChannel; ...@@ -9,6 +9,14 @@ import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel; import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.handler.codec.string.StringDecoder; import io.netty.handler.codec.string.StringDecoder;
/**
* 服务端
*
* @author : qinyingjie
* @version : 2.2.0
* @date : 2023/4/23 16:42
*/
public class HelloServer { public class HelloServer {
public static void main(String[] args) { public static void main(String[] args) {
//启动器,负责组装netty组件 //启动器,负责组装netty组件
......
...@@ -7,7 +7,7 @@ import io.netty.channel.nio.NioEventLoopGroup; ...@@ -7,7 +7,7 @@ import io.netty.channel.nio.NioEventLoopGroup;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
/** /**
* 测试EventLoop * 测试EventLoopGroup
* *
* @author : qinyingjie * @author : qinyingjie
* @version : 2.2.0 * @version : 2.2.0
......
...@@ -7,7 +7,7 @@ import io.netty.channel.nio.NioEventLoopGroup; ...@@ -7,7 +7,7 @@ import io.netty.channel.nio.NioEventLoopGroup;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
/** /**
* 测试EventLoop * 提交普通任务
* *
* @author : qinyingjie * @author : qinyingjie
* @version : 2.2.0 * @version : 2.2.0
......
...@@ -8,7 +8,7 @@ import lombok.extern.slf4j.Slf4j; ...@@ -8,7 +8,7 @@ import lombok.extern.slf4j.Slf4j;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
/** /**
* 测试EventLoop * 执行定时任务
* *
* @author : qinyingjie * @author : qinyingjie
* @version : 2.2.0 * @version : 2.2.0
......
...@@ -8,6 +8,14 @@ import io.netty.handler.codec.string.StringEncoder; ...@@ -8,6 +8,14 @@ import io.netty.handler.codec.string.StringEncoder;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
/**
* 客户端
*
* @author : qinyingjie
* @version : 2.2.0
* @date : 2023/4/23 16:43
*/
public class TestEventLoop_04_Client { public class TestEventLoop_04_Client {
public static void main(String[] args) throws InterruptedException { public static void main(String[] args) throws InterruptedException {
//1.启动类 //1.启动类
......
...@@ -14,7 +14,7 @@ import lombok.extern.slf4j.Slf4j; ...@@ -14,7 +14,7 @@ import lombok.extern.slf4j.Slf4j;
import java.nio.charset.Charset; import java.nio.charset.Charset;
/** /**
* 测试EventLoop * 服务端
* *
* @author : qinyingjie * @author : qinyingjie
* @version : 2.2.0 * @version : 2.2.0
......
...@@ -11,7 +11,7 @@ import lombok.extern.slf4j.Slf4j; ...@@ -11,7 +11,7 @@ import lombok.extern.slf4j.Slf4j;
import java.nio.charset.Charset; import java.nio.charset.Charset;
/** /**
* 测试EventLoop * NioEventLoopGroup
* *
* @author : qinyingjie * @author : qinyingjie
* @version : 2.2.0 * @version : 2.2.0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册