Skip to content

Commit

Permalink
补充ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
seaswalker committed Aug 29, 2016
1 parent 86c6c99 commit 4445f80
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# MiniNetty

迷你版Netty
## 实现的功能

- channelActive/channelInActive/channelRead/channelWrite事件处理

- Handler链式处理

- StringEncoder/StringDecoder

- LengthFieldBasedDecoder

- DelimiterBasedDecoder

- LineBasedDecoder

## 线程模型

![ThreadMode](images/thread_mode.jpg)

Binary file added images/thread_mode.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/java/selector/QueuedSelector.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public final class QueuedSelector implements Runnable, LifeCycle {
private final ArrayDeque<Runnable> jobs;
private final static int defaultQueueSize = 100;
// 默认ByteBuffer分配大小
private static final int defaultAllocateSize = 128;
private static final int defaultAllocateSize = 1024;
private final ExecutorService executor;
private boolean closed = false;
private static final Logger logger = LoggerFactory
Expand Down

0 comments on commit 4445f80

Please sign in to comment.