当前位置:网站首页>Disruptor local thread queue_ Workprocessor exception_ Fatalexceptionhandler--- inter thread communication work note 004
Disruptor local thread queue_ Workprocessor exception_ Fatalexceptionhandler--- inter thread communication work note 004
2022-06-21 16:55:00 【Brain cooling】
In the use of disruptor In the process of ,disruptor The queue occasionally reports an error , That's it :
_FatalExceptionHandler Such mistake , Actually :
stay disruptor in , It encapsulates the exception : You can look at the source code , We know
stay disruptor The worker thread in is com.lmax.disruptor.WorkProcessor#run In this method ,
You can see that there is a try ,catch, You can see that after the exception is caught ,
Here we use exceptionHandler.handleEventException What we deal with here is , and :handleEventException This method
The end result of the call is actually ,exceptionHandler Methods in the implementation class :
catch (final Throwable ex)
{
// handle, mark as processed, unless the exception handler threw an exception
exceptionHandler.handleEventException(ex, nextSequence, event);
processedSequence = true;
} You can see the source code :ExceptionHandler Implementation class of com.lmax.disruptor.FatalExceptionHandler, its com.lmax.disruptor.FatalExceptionHandler#handleEventException The method is as follows :
@Override
public void handleEventException(final Throwable ex, final long sequence, final Object event)
边栏推荐
- Publicity of the first batch of shortlisted enterprises! Annual Top100 smart network supplier selection
- IDC咨询:2022年中国关系型数据库软件市场,变革即将到来
- 谷歌 Chrome 浏览器全新下载窗口将支持文件拖拽,Edge 已经支持
- 在线JSON转YAML工具
- Notice on printing and distributing the Interim Measures of Beijing Municipality for the administration of housing with common property rights
- Go language development code self test excellent go fuzzing usage explanation
- 聪明人:三不管、四不说、五不帮,古人为人处世之道
- Undefined functions or variables [explained in one article] (matlab)
- 依靠可信AI的鲁棒性有效识别深度伪造,帮助银行对抗身份欺诈
- Wireshark captures packets to analyze the process of SSL handshake
猜你喜欢

学习软件“学习通”数据库疑似发生信息泄露,泄露学生信息达1亿多条

Standing at the digital tuyere, how can tooling enterprises "fly"

强化学习入门项目spinning up(1)安装
Go language development code self test excellent go fuzzing usage explanation

撰写有效帮助文档的7大秘诀

Why do you want to develop tea mall applet app?

2022年Q1手机银行用户规模达6.5亿,加强ESG个人金融产品创新

Any to Any 实时变声的实现与落地丨RTC Dev Meetup

招募令|数据可视化开发平台“FlyFish”「超级体验官」招募啦!

Cisco (35) -- BGP introduction experiment
随机推荐
快来围观–TPT18新版报到
关于cookie和session的一些理解
Necessary for data analysis: 6 steps +5 types +2 analysis methods
Any to Any 实时变声的实现与落地丨RTC Dev Meetup
谷歌 Chrome 浏览器全新下载窗口将支持文件拖拽,Edge 已经支持
Deep understanding of zero copy technology
Undefined functions or variables [explained in one article] (matlab)
关于规范共有产权住房出租管理工作的通知(试行)
带你区分几种并行
The database cannot be connected. I don't know what's wrong
【数学建模】MATLAB应用实战系列(九十五)-时间序列预测应用案例(附MATLAB代码)
Publicity of the first batch of shortlisted enterprises! Annual Top100 smart network supplier selection
Huawei (13) - route introduction
深入理解零拷贝技术
撰写有效帮助文档的7大秘诀
PingCAP 入选 2022 Gartner 云数据库“客户之声”,获评“卓越表现者”最高分
Notice on printing and distributing the Interim Measures of Beijing Municipality for the administration of housing with common property rights
Pingcap was selected as the "voice of customers" of Gartner cloud database in 2022, and won the highest score of "outstanding performer"
VNC Viewer方式的远程连接树莓派
Notice on Revising the guidelines for the planning, design and livable construction of housing with common property rights in Beijing (for Trial Implementation)