You can submit Callables
, but they get wrapped internally as Runnables
(actually FutureTasks
, which implement Runnable
). shutDownNow()
is only going to return Runnables
, just like it says on the tin.
If you want to get the list of Callables
that haven't been run, you'll need to keep track of them yourself somehow (e.g., keep a list of them and make them responsible for removing themselves from the list when they're called.)