title: How to run outstanding tasks immediately after ExecutorService.shutdown()?
body: <p>I've got a <code>ScheduledExecutorService</code> with tasks scheduled to execute in an hour. How do I get the list of outstanding tasks so I can force them to run immediately?</p>
  
  <p>I believe <code>shutdown()</code> will wait an hour and it looks as if <code>shutdownNow()</code> returns a list of Runnables that cannot be run() because the Runnable implementation checks the Executor state and when it notices that it has shut down the Runnable refuses to run. See <code>ScheduledThreadPoolExecutor.ScheduledFutureTask.run()</code> for the actual implementation.</p>
  
  <p>Any ideas?</p>