public class TwoThreadBlockingQueue extends Object implements BlockingQueue
Constructor and Description |
---|
TwoThreadBlockingQueue() |
public static final String poison
public void add(String object)
add
in interface BlockingQueue
public String take() throws InterruptedException
take
in interface BlockingQueue
InterruptedException
Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.