Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Code using the Disruptor library from LMAX

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 future
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 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

Something went wrong with that request. Please try again.