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/01/27 16:01:49 UTC
[jira] Created: (DIRMINA-339) IoFilterChain.replace()
IoFilterChain.replace()
-----------------------
Key: DIRMINA-339
URL: https://issues.apache.org/jira/browse/DIRMINA-339
Project: MINA
Issue Type: New Feature
Components: Core
Reporter: Trustin Lee
Priority: Minor
Fix For: 2.0.0-M1
in MINA 1.x, people have to remove a filter and add a new filter to replace a filter. This is not thread-safe because there's a gap between the removal and the addition. Introducing replace() method could help this problem:
filterChain.replace("codec", newCodec); // Switch to the new codec.
filterChain.replace(oldCodec, newCodec); // Switch by explicit reference
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (DIRMINA-339) IoFilterChain.replace()
Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Trustin Lee resolved DIRMINA-339.
---------------------------------
Resolution: Fixed
Assignee: Trustin Lee
replace() methods have been added to IoFilterChain, AbstractIoFilterChain, and DefaultIoFilterChainBuilder.
> IoFilterChain.replace()
> -----------------------
>
> Key: DIRMINA-339
> URL: https://issues.apache.org/jira/browse/DIRMINA-339
> Project: MINA
> Issue Type: New Feature
> Components: Core
> Reporter: Trustin Lee
> Assigned To: Trustin Lee
> Priority: Minor
> Fix For: 2.0.0-M1
>
>
> in MINA 1.x, people have to remove a filter and add a new filter to replace a filter. This is not thread-safe because there's a gap between the removal and the addition. Introducing replace() method could help this problem:
> filterChain.replace("codec", newCodec); // Switch to the new codec.
> filterChain.replace(oldCodec, newCodec); // Switch by explicit reference
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (DIRMINA-339) IoFilterChain.replace()
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny closed DIRMINA-339.
-------------------------------------
> IoFilterChain.replace()
> -----------------------
>
> Key: DIRMINA-339
> URL: https://issues.apache.org/jira/browse/DIRMINA-339
> Project: MINA
> Issue Type: New Feature
> Components: Core
> Reporter: Trustin Lee
> Assignee: Trustin Lee
> Priority: Minor
> Fix For: 2.0.0-M1
>
>
> in MINA 1.x, people have to remove a filter and add a new filter to replace a filter. This is not thread-safe because there's a gap between the removal and the addition. Introducing replace() method could help this problem:
> filterChain.replace("codec", newCodec); // Switch to the new codec.
> filterChain.replace(oldCodec, newCodec); // Switch by explicit reference
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.