Code using the Disruptor library from LMAX
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with quux00:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
future
src/demo/disruptor
.gitignore
README.md
build.xml

README.md

Disruptor-Daj

This is my repository for testing out the Disruptor library from LMAX. It is written against Disruptor-2.7. You can get the code here: http://code.google.com/p/disruptor/downloads/list

Demo Code

Not all the documentation at http://code.google.com/p/disruptor/ is up to date, so the best way to get the latest is read the source code and tests and javadoc.

I have created short demonstrations of how to do various things with the API - these are supplements to reading the Disruptor unit tests. I find some of the unit tests with various Mock objects adding to the noise in trying to follow how to do this.

My demos are not unit tests - they are simple demos with println statements and you can analyze the println output with the code to see how to do something.

Build and run

There is an Ant build file. The only requirement is that you copy the disruptor-2.7.jar to the lib directory created by the Ant build file (or make a symlink to it). There are no other dependencies, other than Java 6.

Daj?

Since the Disruptor is named after the main ship's weapon of the Klingon Empire (http://code.google.com/p/disruptor/wiki/FrequentlyAskedQuestions), this project includes the Klingon word Daj, which means 'test'. I tried looking up the Klingon word for 'demonstration', but couldn't find one.

Future

More will be coming later, including more complicated applications with it.

-Michael Peterson

November 2011