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 .