public void shutdownNow() {
      log.tracef("Stopping limited executor %s", name);
      running = false;
      lock.lock();
      try {
         queue.clear();

         for (Thread t : threads.keySet()) {
            t.interrupt();
         }
      } finally {
         lock.unlock();
      }
   }
public void shutdownNow ( ) { log . tracef ( "Stopping limited executor %s" , name ) ; running = false ; lock . lock ( ) ; try { queue . clear ( ) ; for ( Thread t : threads . keySet ( ) ) { t . interrupt ( ) ; } } finally { lock . unlock ( ) ; } }
Stops the executor and cancels any queued tasks.

Stop and interrupt any tasks that have already been handed to the underlying executor.