<div dir="ltr">Hello All,<div>The thread-pool utilities don&#39;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&#39;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&#39;s no way to shut them down and kill running threads.</div><div><br></div><div>I&#39;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?</div><div><br></div><div><br></div><div>[1] :<a href="https://github.com/wildfly/wildfly-core/blob/69fed63548cbebed86e31ba376f0f7f147fe04a2/threads/src/main/java/org/jboss/as/threads/ManagedExecutorService.java#L71-L84">https://github.com/wildfly/wildfly-core/blob/69fed63548cbebed86e31ba376f0f7f147fe04a2/threads/src/main/java/org/jboss/as/threads/ManagedExecutorService.java#L71-L84</a></div><div>[2]: <a href="https://github.com/wildfly/wildfly-core/compare/master...jamezp:thread-pool-shutdown">https://github.com/wildfly/wildfly-core/compare/master...jamezp:thread-pool-shutdown</a><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>
</div></div>