Exemple #1
0
 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();
   }
 }
Exemple #2
0
 public void shutdown(long time, TimeUnit unit) {
   parent.shutdown(time, unit);
   producer.shutdown();
 }