This was pretty much based on Maged M. Michael, and Michael L. Scott's 2 Lock concurrent queue as described in their paper, "Simple, Fast, and Practical Non-Blocking and Blocking Concurrent Algorithms" ({michael, scott}@cs.rochester.edu). For the specific use case of {@link ChunkedPipelineConnection}, we will have 1:1 producer-consumer concurrency and can do away with the 2 locks of their algorithm and get better performance. This class partially supports the {@link BlockingQueue} for thepurposes of the pipeline. It is not intended for general use.
@author joubin (alphazero@sensesay.net)
@date Dec 9, 2009 (original)
@date Jan 23, 2012 (this version)
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.