Code example for BlockingQueue

Methods: clear

0
	} 
 
	public synchronized void release() { 
		stop(); 
		rec.release();
		queue.clear();
	} 
 
	public short[] poll() { 
		return queue.poll();
	} 
 
	public short[] take() throws InterruptedException { 
		return queue.take();
	} 
}