Code example for LinkedBlockingDeque

0
/** 
 * @author Costin Leau 
 */ 
public class StubErrorHandler implements ErrorHandler {
 
	public BlockingDeque<Throwable> throwables = new LinkedBlockingDeque<Throwable>();
 
	@Override 
	public void handleError(Throwable t) {
		throwables.add(t);
	} 
 
}