Skip to content

Instantly share code, notes, and snippets.

Avatar

Pasindu Nivanthaka Tennage PasinduTennage

View GitHub Profile
@jbrisbin
jbrisbin / DisruptorTest.java
Created Dec 30, 2011
Disruptor RingBuffer-based simplistic NIO HTTP test server
View DisruptorTest.java
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.StandardSocketOptions;
import java.nio.ByteBuffer;
import java.nio.channels.CancelledKeyException;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
You can’t perform that action at this time.