Code example for ListeningExecutorService

Methods: shutdownNow

0
         this.service = service;
      } 
 
      @Override 
      public void close() throws IOException {
         List<Runnable> runnables = service.shutdownNow();
         if (!runnables.isEmpty())
            logger.warn("when shutting down executor %s, runnables outstanding: %s", service, runnables);
      } 
   } 
 
   final ListeningExecutorService userExecutorFromConstructor;
 
   public ExecutorServiceModule() { 
      this.userExecutorFromConstructor = null;
   } 
 
   /** 
    * @deprecated {@code ioExecutor} is no longer used. This constructor will be removed in jclouds v2. 
    * Use {@link #ExecutorServiceModule(ExecutorService)} instead.