Implement BlockingQueue.