How to use the BlockingQueue interface.