[jboss-jira] [JBoss JIRA] Commented: (JBAS-9264) BoundedQueueThreadPoolService provides Executor instead of ExecutorService

Paul Ferraro (JIRA) jira-events at lists.jboss.org
Thu Apr 7 23:44:33 EDT 2011


    [ https://issues.jboss.org/browse/JBAS-9264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594399#comment-12594399 ] 

Paul Ferraro commented on JBAS-9264:
------------------------------------

That'll do.  But why the discrepancy?  How come the QueuelessThreadPoolService and UnboundedThreadPoolService both provide an ExecutorService while the BoundedQueueThreadPoolService only provides an Executor?

> BoundedQueueThreadPoolService provides Executor instead of ExecutorService
> --------------------------------------------------------------------------
>
>                 Key: JBAS-9264
>                 URL: https://issues.jboss.org/browse/JBAS-9264
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Domain Management
>    Affects Versions: 7.0.0.Beta2
>            Reporter: Paul Ferraro
>
> Currently, there is no thread service that provides a j.u.c.ExecutorService using a bounded queue thread pool.
> The existing BoundedQueueThreadPoolService only provides a j.u.c.Executor, instead of the far more useful j.u.c.ExecutorService.  The exposed j.u.c.Executor cannot even be cast to an j.u.c.ExecutorService, since the underlying QueueExecutor is wrapped by a decorator that does not implement j.u.c.ExecutorService.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list