[
https://issues.apache.org/jira/browse/DIRMINA-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16840436#comment-16840436
]
Guus der Kinderen commented on DIRMINA-1108:
--------------------------------------------
{{shutdownNow}} would attempt to stop all executing tasks (at least, that's
what its contract says - unsure if that's actually implemented in the MINA
implementation that way). That's not what I want for the particular use-case I
had in mind.
Ideally, termination should be faster, which would be a minor improvement.
> ThreadPoolExecutors should terminate faster
> -------------------------------------------
>
> Key: DIRMINA-1108
> URL: https://issues.apache.org/jira/browse/DIRMINA-1108
> Project: MINA
> Issue Type: Improvement
> Affects Versions: 2.1.2
> Reporter: Guus der Kinderen
> Priority: Minor
>
> I've observed that the termination of
> {{org.apache.mina.filter.executor.PriorityThreadPoolExecutor}} takes another
> 30 seconds after the last task was executed. More specifically, it takes 30
> seconds "to long" before
> {{org.apache.mina.filter.executor.PriorityThreadPoolExecutor#awaitTermination}}
> returns {{true}}.
> It is likely that this issue also applies to
> {{org.apache.mina.filter.executor.OrderedThreadPoolExecutor}}, and maybe
> {{org.apache.mina.filter.executor.UnorderedThreadPoolExecutor}}, as a lot of
> code is shared between these implementations. I did not explicitly verify
> these implementations though.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)