The simplest and actual example code of LMAX Disruptor

ε祈祈猫儿з 提交于 2019-12-03 03:17:50

问题


I wish I can get the simplest possible example code, which will show how to use LMAX disruptor(http://code.google.com/p/disruptor/).

Unfortunately every piece of code is out of date. Does someone know, where can I found small and up to date howto (preferable without DSL)?


回答1:


you can see the example here.

http://code.google.com/p/disruptor/wiki/CodeExampleDisruptor2x

I have done a simple example by using the above wiki. hope this helps you.




回答2:


Here is a simple, runnable, example of how to use the Disruptor library. Example is written in Java using version 2.10.4 of the Disruptor library.

https://github.com/trevorbernard/disruptor-examples




回答3:


There is an official sample application on github now: Getting-Started




回答4:


Sharing an example with multiple publishers and chained handlers, this uses their latest available dsl api format http://vijayrc.com/vectorclocks/post/thread3




回答5:


I have shared example here, I hope it helps.

This question might be duplicate of

Disruptor helloworld example



来源:https://stackoverflow.com/questions/9168602/the-simplest-and-actual-example-code-of-lmax-disruptor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!