I've got a ScheduledExecutorService 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?
I believe shutdown() will wait an hour and it looks as if shutdownNow() 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 ScheduledThreadPoolExecutor.ScheduledFutureTask.run() for the actual implementation.
Any ideas?