Hello All,
The thread-pool utilities don't currently allow the shutdown() or shutdownNow() [1] to be executed on the delegate executor. This made sense when we had a thread subsystem, but now that we don't it makes these executors hard to use for things like graceful shutdown. For example if a graceful shutdown limit has been reached threads submitted from these thread-pools continue running as there's no way to shut them down and kill running threads.

I'd propose that since these are utilities now that these methods be exposed for usage [2]. Does anyone see an issue with that? Or have alternative ides?


[1] :https://github.com/wildfly/wildfly-core/blob/69fed63548cbebed86e31ba376f0f7f147fe04a2/threads/src/main/java/org/jboss/as/threads/ManagedExecutorService.java#L71-L84
[2]: https://github.com/wildfly/wildfly-core/compare/master...jamezp:thread-pool-shutdown

--
James R. Perkins
JBoss by Red Hat