mirror of
https://github.com/youthlql/JavaYouth.git
synced 2026-03-17 15:53:40 +08:00
更新Netty-第三话,jvm第四章错别字纠错
This commit is contained in:
@@ -146,9 +146,11 @@ AQS剩余部分,以及阻塞队列源码暂时先搁置一下。
|
|||||||
|
|
||||||
## 入门
|
## 入门
|
||||||
|
|
||||||
[Netty入门-第一话](docs/netty/introduction/Netty入门-第一话.md)
|
[Netty入门-第一话](docs/netty/introduction/Netty入门-第一话.md):第一话对BIO和NIO进行了讲解,为后续做准备
|
||||||
|
|
||||||
[Netty入门-第二话](docs/netty/introduction/Netty入门-第二话.md)
|
[Netty入门-第二话](docs/netty/introduction/Netty入门-第二话.md):对Netty的架构进行了解析,主要是Reactor设计模式的多种解决方案。同时讲解了Netty的核心模块组件
|
||||||
|
|
||||||
|
[Netty入门-第三话](docs/netty/introduction/Netty入门-第三话.md):对前面两话一些迷惑的点进行细说,讲解handler调用机制,TCP粘包,以及用netty写一个十分简单的RPC
|
||||||
|
|
||||||
# Apollo
|
# Apollo
|
||||||
|
|
||||||
|
|||||||
@@ -1421,7 +1421,7 @@ public class StringBuilderTest {
|
|||||||
s1.append("b");
|
s1.append("b");
|
||||||
return s1;
|
return s1;
|
||||||
}
|
}
|
||||||
//s1的操作:是线程安全的(s1自己消亡了,最后返回的智商s1.toString的一个新对象)
|
//s1的操作:是线程安全的(s1自己消亡了,最后返回的只是s1.toString的一个新对象)
|
||||||
public static String method4(){
|
public static String method4(){
|
||||||
StringBuilder s1 = new StringBuilder();
|
StringBuilder s1 = new StringBuilder();
|
||||||
s1.append("a");
|
s1.append("a");
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ categories:
|
|||||||
- Netty
|
- Netty
|
||||||
- 入门
|
- 入门
|
||||||
keywords: Netty
|
keywords: Netty
|
||||||
description: Netty入门-第一话。
|
description: 第一话对BIO和NIO进行了讲解,为后续做准备。
|
||||||
cover: 'https://cdn.jsdelivr.net/gh/youthlql/lqlp@master/netty/netty_logo.jpg'
|
cover: 'https://cdn.jsdelivr.net/gh/youthlql/lqlp@master/netty/netty_logo.jpg'
|
||||||
abbrlink: 3f9283e7
|
abbrlink: 3f9283e7
|
||||||
date: 2021-04-08 14:21:58
|
date: 2021-04-08 14:21:58
|
||||||
|
|||||||
2554
docs/netty/introduction/Netty入门-第三话.md
Normal file
2554
docs/netty/introduction/Netty入门-第三话.md
Normal file
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ categories:
|
|||||||
- Netty
|
- Netty
|
||||||
- 入门
|
- 入门
|
||||||
keywords: Netty
|
keywords: Netty
|
||||||
description: Netty入门-第二话。
|
description: 对Netty的架构进行了解析,主要是Reactor设计模式的多种解决方案。同时讲解了Netty的核心模块组件。
|
||||||
cover: 'https://cdn.jsdelivr.net/gh/youthlql/lqlp@master/netty/netty_logo.jpg'
|
cover: 'https://cdn.jsdelivr.net/gh/youthlql/lqlp@master/netty/netty_logo.jpg'
|
||||||
abbrlink: f846f3f
|
abbrlink: f846f3f
|
||||||
date: 2021-04-15 14:21:58
|
date: 2021-04-15 14:21:58
|
||||||
@@ -867,6 +867,8 @@ public class TestHttpServerHandler extends SimpleChannelInboundHandler<HttpObjec
|
|||||||
|
|
||||||
# Netty 核心模块组件
|
# Netty 核心模块组件
|
||||||
|
|
||||||
|
> 各种东西看不懂,可以先看第三话,第三话我自认为用通俗的语言讲的还算清楚。
|
||||||
|
|
||||||
## Bootstrap、ServerBootstrap
|
## Bootstrap、ServerBootstrap
|
||||||
|
|
||||||
1. `Bootstrap` 意思是引导,一个 `Netty` 应用通常由一个 `Bootstrap` 开始,主要作用是配置整个 `Netty` 程序,串联各个组件,`Netty` 中 `Bootstrap` 类是客户端程序的启动引导类,`ServerBootstrap` 是服务端启动引导类。
|
1. `Bootstrap` 意思是引导,一个 `Netty` 应用通常由一个 `Bootstrap` 开始,主要作用是配置整个 `Netty` 程序,串联各个组件,`Netty` 中 `Bootstrap` 类是客户端程序的启动引导类,`ServerBootstrap` 是服务端启动引导类。
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
window.$docsify = {
|
window.$docsify = {
|
||||||
name: 'JavaYouth',
|
name: 'JavaYouth',
|
||||||
repo: 'https://github.com/youthlql/JavaYouth',
|
repo: 'https://github.com/youthlql/JavaYouth',
|
||||||
maxLevel: 5,//最大支持渲染的标题层级
|
maxLevel: 6,//最大支持渲染的标题层级
|
||||||
coverpage: true,
|
coverpage: true,
|
||||||
auto2top: true,//切换页面后是否自动跳转到页面顶部
|
auto2top: true,//切换页面后是否自动跳转到页面顶部
|
||||||
loadNavbar: true,//导航栏
|
loadNavbar: true,//导航栏
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
placeholder: '搜索',
|
placeholder: '搜索',
|
||||||
noData: '找不到结果',
|
noData: '找不到结果',
|
||||||
// 搜索标题的最大程级, 1 - 6
|
// 搜索标题的最大程级, 1 - 6
|
||||||
depth: 4,
|
depth: 6,
|
||||||
},
|
},
|
||||||
// 字数统计
|
// 字数统计
|
||||||
count: {
|
count: {
|
||||||
|
|||||||
Reference in New Issue
Block a user