Code example for BlockingQueue

Methods: poll

0
		rec.release();
		queue.clear();
	} 
 
	public short[] poll() { 
		return queue.poll();
	} 
 
	public short[] take() throws InterruptedException { 
		return queue.take();
	} 
} 
Experience pair programming with AI  Get Codota for Java