博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Disruptor技术调研之EventHandler
阅读量:7268 次
发布时间:2019-06-29

本文共 937 字,大约阅读时间需要 3 分钟。

  hot3.png

com.lmax.disruptor.EventHandler<T>
Callback interface to be implemented for processing events as they become available in the RingBuffer
用于提供对RingBuffer中当事件可用时的接口
Type Parameters:
<T> event implementation storing the data for sharing during exchange or parallel coordination of an event.
事件数据
See Also:
if you want to handle exceptions propagated out of the handler.
如果需要将handler中出现的异常传播出去,可通过如下设置:--->>
void com.lmax.disruptor.BatchEventProcessor.setExceptionHandler(ExceptionHandler<? super T> exceptionHandler)
Set a new ExceptionHandler for handling exceptions propagated out of the BatchEventProcessor
Parameters:
exceptionHandler to replace the existing exceptionHandler.
设置的exceptionHandler,接口定义如下:--->>
com.lmax.disruptor.ExceptionHandler<T>
Callback handler for uncaught exceptions in the event processing cycle of the BatchEventProcessor
在BatchEventProcessor的事件处理循环中定义对未捕获异常的处理接口

转载于:https://my.oschina.net/u/914290/blog/668555

你可能感兴趣的文章
Java集合框架总结(4)——List接口的使用
查看>>
MySQL Innodb独立表空间的配置
查看>>
Android入门-新手如何成功创建一个Android小应用
查看>>
备份恢复与CRM集成的sharepoint站点
查看>>
leetcode -- Valid Parentheses
查看>>
关闭端口占用程序
查看>>
markdown语法
查看>>
Oracle调优之buffer pool相关
查看>>
Alpha混叠/叠加两图面
查看>>
圆角与半角互相转换
查看>>
BZOJ 1500: [NOI2005]维修数列 (splay tree)
查看>>
Linux下双网卡-双外网网关-电信联通双线主机设置
查看>>
【Ireport】利用Ireport5.2的table组件迅速制作表格导出pdf
查看>>
C++中的Thunk技术 / 非静态类成员函数作为回调函数 的实现方法
查看>>
Edge.js:让.NET和Node.js代码比翼齐飞
查看>>
SharePoint 2013 文档库中PPT转换PDF
查看>>
在C#中实现简单的对象池
查看>>
Senparc.Weixin.MP SDK 微信公众平台开发教程(四):Hello World
查看>>
VLAN间单臂路由访问
查看>>
翻译:Knockout 快速上手 - 2: 安装 knockoutJS
查看>>