Class ThreadSafeBuffer<X>

java.lang.Object
io.github.ai4ci.util.ThreadSafeBuffer<X>
Type Parameters:
X - the buffer type
All Implemented Interfaces:
Serializable, Iterable<X>, Collection<X>, BlockingQueue<X>, Queue<X>

public class ThreadSafeBuffer<X> extends Object implements Serializable, BlockingQueue<X>
A circular buffer that can be written to by many threads and read from primarily by one thread. Will block putting thread if the buffer is full.
See Also: