Skip to content

Instantly share code, notes, and snippets.

View rohit-sachan's full-sized avatar

Rohit Sachan rohit-sachan

View GitHub Profile
@rohit-sachan
rohit-sachan / Sample2.java
Created February 5, 2014 08:17
changed for multiple handlers
package prodcons.disruptor;
import com.lmax.disruptor.BusySpinWaitStrategy;
import com.lmax.disruptor.EventHandler;
import com.lmax.disruptor.RingBuffer;
import com.lmax.disruptor.dsl.Disruptor;
import com.lmax.disruptor.dsl.ProducerType;
import java.util.concurrent.*;
@rohit-sachan
rohit-sachan / src_prodcons_Consumer.java
Last active April 1, 2020 14:10
Sample example for lmax disruptor
package prodcons;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.NumberFormat;
import java.util.Locale;
import java.util.concurrent.BlockingQueue;
/**
* Created by Rohit Sachan on 1/13/14.