public List<Runnable> shutdownNow(){
  logger.info("Shutting down scanner immediately.");
  return executor.shutdownNow();
}

public List < Runnable > shutdownNow ( ) { logger . info ( "Shutting down scanner immediately." ) ; return executor . shutdownNow ( ) ; }
shut down the scanner , interrupting running tasks and cancelling waiting ones .
