private void resume(){
  lock.lock();
  try {
    if (paused.get() == 0) {
      throw new IllegalStateException("Not paused");
    }
    if (paused.decrementAndGet() == 0) {
      if (log.isDebugEnabled())       log.debug("Resuming write service");
      unpaused.signalAll();
    }
  }
  finally {
    lock.unlock();
  }
}

private void resume ( ) { lock . lock ( ) ; try { if ( paused . get ( ) == 0 ) { throw new IllegalStateException ( "Not paused" ) ; } if ( paused . decrementAndGet ( ) == 0 ) { if ( log . isDebugEnabled ( ) ) log . debug ( "Resuming write service" ) ; unpaused . signalAll ( ) ; } } finally { lock . unlock ( ) ; } }
notifies all paused tasks that they may now run .
