[ISSUE #9308]For the orchestration of configuration filters, there are the following areas that can be optimized #9309 #9310
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1 Add FilterChainNode as the responsibility chain node to package the configuration filter, so each node contains the current configuration filter and the next responsibility chain node.
2 At startup, build a chain of responsibility through the buildConfigFilterChain() method.
3 Create EmptyFilterChainNode as the last node on the chain to reduce the next == null judgment during execution
1 新增FilterChainNode作为责任链节点,对配置过滤器进行包装,于是每个节点包含当前的配置过滤器,以及下一个责任链节点。
2 在启动时,通过buildConfigFilterChain()方法构建责任链。
3 创建EmptyFilterChainNode作为链上的最后一个节点,减少在执行过程中的 next == null 判断
issue