栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

Dubbo3 RpcContext中的3个RpcContextAttachment和1个RpcServiceContext

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Dubbo3 RpcContext中的3个RpcContextAttachment和1个RpcServiceContext

dubbo3 在RpcContext中RpcContextAttachment和RpcServiceContext的生命周期

ContextRemove PointDescribe
SERVER_LOCALContextFilter.onResponse
ContextFilter.onError
ConsumerContextFilter.invoke
该变量的生命周期只会作用在provider侧,但是一时provider转换为consumer角色时,就会将该变量清除
CLIENT_ATTACHMENTContextFilter.onResponse
ContextFilter.onError
ConsumerContextFilter.onResponse
ConsumerContextFilter.onError
在Provider侧和Consumer侧的Filter的onResponse和onError方法中都会被清除
SERVICE_CONTEXTContextFilter.onResponse
ContextFilter.onError
ConsumerContextFilter.onResponse
ConsumerContextFilter.onError
在Provider侧和Consumer侧的Filter的onResponse和onError方法中都会被清除
SERVER_ATTACHMENTContextFilter.onResponse
ContextFilter.onError
在Provider侧的ContextFilter处理响应或者处理异常的方法中清除该ThreadLocal;
同样在ContextFilter.invoke 方法也事先设置了条件(context.clearAfterEachInvoke(false))该变量在除该类外不会随意被清除
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1021229.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号