Disruptor3.x Disruptor使用方式
Disruptor3.x Disruptor使用方式 EventHandler[] eventHandlers=new DisruptorEventHandler[]{new DisruptorEventHandler()}; DisruptorPublisher dp=new DisruptorPublisher(1024, eventHandlers); dp.start(); for (int i = 0; true; i++) { CDO cdo=new CDO(); cdo.setStringValue("strSN", i+"-"+DataUtil.uuid()); EventData data=new EventData(cdo); dp.publish(data); }
文件列表
3.x Disruptor使用方式.zip
(预估有个6文件)
3.x Disruptor使用方式
IEventPublisher.java
143B
DisruptorPublisher.java
2KB
EventData.java
438B
DisruptorEventHandler.java
733B
TestDisruptor.java
809B
Event.java
452B
暂无评论