[
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.