Code example for LinkedBlockingDeque

0
/** 
 * @author Costin Leau 
 */ 
public class StubErrorHandler implements ErrorHandler {
 
	public BlockingDeque<Throwable> throwables = new LinkedBlockingDeque<Throwable>();
 
 
	public void handleError(Throwable t) {
		throwables.add(t);
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java