You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2007/03/21 05:48:32 UTC

[jira] Created: (DIRMINA-360) Provide interruptable wait methods in IoFuture.

Provide interruptable wait methods in IoFuture.
-----------------------------------------------

                 Key: DIRMINA-360
                 URL: https://issues.apache.org/jira/browse/DIRMINA-360
             Project: MINA
          Issue Type: New Feature
          Components: Core
            Reporter: Trustin Lee
            Priority: Minor
             Fix For: 2.0.0-M1


IoFuture.join() and IoFuture.join(long) are uninterruptable, that is, calling Thread.interrupt() won't make the call return immediately, which often causes unexpectedly delayed shutdown of a thread.  As other classes in java.util.concurrent package provide both interruptable and uninterruptable wait methods, we need to provide both types of methods for IoFuture.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DIRMINA-360) Provide interruptable wait methods in IoFuture.

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRMINA-360.
-------------------------------------


> Provide interruptable wait methods in IoFuture.
> -----------------------------------------------
>
>                 Key: DIRMINA-360
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-360
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Trustin Lee
>            Assignee: Trustin Lee
>            Priority: Minor
>             Fix For: 2.0.0-M1
>
>
> IoFuture.join() and IoFuture.join(long) are uninterruptable, that is, calling Thread.interrupt() won't make the call return immediately, which often causes unexpectedly delayed shutdown of a thread.  As other classes in java.util.concurrent package provide both interruptable and uninterruptable wait methods, we need to provide both types of methods for IoFuture.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (DIRMINA-360) Provide interruptable wait methods in IoFuture.

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee resolved DIRMINA-360.
---------------------------------

    Resolution: Fixed
      Assignee: Trustin Lee

The following methods have been added:

* void await() throws InterruptedException
* boolean await(long timeoutMillis) throws InterruptedException
* boolean await(long timeout, TimeUnit unit) throws InterruptedException
* void awaitUninterruptibly()
* boolean awaitUninterruptibly(long timeoutMillis)
* boolean awaitUninterruptibly(long timeout, TimeUnit unit)

Now, join() methods have been deprecated.  Calling join() will simply redirect you to awaitUninterruptibly().

> Provide interruptable wait methods in IoFuture.
> -----------------------------------------------
>
>                 Key: DIRMINA-360
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-360
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Trustin Lee
>         Assigned To: Trustin Lee
>            Priority: Minor
>             Fix For: 2.0.0-M1
>
>
> IoFuture.join() and IoFuture.join(long) are uninterruptable, that is, calling Thread.interrupt() won't make the call return immediately, which often causes unexpectedly delayed shutdown of a thread.  As other classes in java.util.concurrent package provide both interruptable and uninterruptable wait methods, we need to provide both types of methods for IoFuture.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.