public void stop(boolean immediate)
   {
      log.debug("stop, immediate="+immediate);
      stopped.set(true);
      if (immediate)
         executor.shutdownNow();
      else
         executor.shutdown();
   }
public void stop(boolean immediate)
   {
      log.debug("stop, immediate="+immediate);
      stopped.set(true);
      if (immediate)
         executor.shutdownNow();
      else
         executor.shutdown();
   }
public void stop ( boolean immediate ) { log . debug ( "stop, immediate=" + immediate ) ; stopped . set ( true ) ; if ( immediate ) executor . shutdownNow ( ) ; else executor . shutdown ( ) ; }
ThreadPool ----------------------------------------------------
ThreadPool ----------------------------------------------------