Skip to content

Commit

Permalink
update README.md by tangjie
Browse files Browse the repository at this point in the history
update README.md by tangjie
  • Loading branch information
tang-jie committed Feb 2, 2018
1 parent f98237e commit 0929391
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,30 +107,7 @@ high performance java rpc server base on netty framework,using kryo,hessian,prot
## NettyRPC 2.8 Build 2018/2/2

**在NettyRPC 2.7的基础上,加入RPC请求过滤器链和监听器链功能**
* 通过监听器链和过滤器链,可以对RPC客户端请求进行过滤和监听。具体调用流程图如下所示:

|------------------------------------------------------------------------------------------------------|

| RPC客户端发起请求--> |(NettyRPC客户端)

|------------------------------------------------------------------------------------------------------|

|

\|/

|------------------------------------------------------------------------------------------------------|

| 链式过滤器1(ChainFilter) -->链式过滤器2(ChainFilter) ....-->链式过滤器N(ChainFilter)--> |

| 链式监听器1(ModuleListener)-->链式监听器2(ModuleListener)....-->链式监听器N(ModuleListener)--> |(NettyRPC服务端)

| 过滤器(Filter)--> |

| RPC服务器响应请求 |

|------------------------------------------------------------------------------------------------------|

* 通过监听器链和过滤器链,可以对RPC客户端请求进行过滤和监听。具体参考[NettyRPC入门手册](https://github.com/tang-jie/NettyRPC/wiki/NettyRPC%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97)中的“链式处理”章节。
* 过滤器链封装类(com.newlandframework.rpc.filter.ModuleFilterChainWrapper)、监听器链封装类(com.newlandframework.rpc.listener.ModuleListenerChainWrapper)通过spring依赖注入。
* NettyRPC内置了一些链式过滤器:com.newlandframework.rpc.filter.support.ClassLoaderChainFilter、com.newlandframework.rpc.filter.support.EchoChainFilter,以及链式监听器:com.newlandframework.rpc.listener.support.ModuleListenerAdapter。具体可以根据需求进行扩展添加。

Expand Down
Binary file added docs/chain.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0929391

Please sign in to comment.