Thread-safe, bounded queue implemented in Java using a circular array.