private void add(PooledFatPipe child) { parent.adding = true; try { parent.lock.acquire(); } catch (InterruptedException e) { logger.warn("add", e); return; } finally { parent.adding = false; } try { producer.add(child); } finally { parent.lock.release(); } }
public void shutdown(long time, TimeUnit unit) { parent.shutdown(time, unit); producer.shutdown(); }