Hi community,

I've just added a few more attribute manipulation methods in IoSession.

* boolean removeAttribute(String key, Object value)
* Object setAttributeIfAbsent(String key, Object value)
* boolean replaceAttribute(String key, Object oldValue, Object newValue)

I added these methods after ConcurrentMap.

The following is the related JIRA issue page:

https://issues.apache.org/jira/browse/DIRMINA-370

I found these methods are quite useful at a certain situation that
needs synchronized update of session attribute.

As always, feedback is welcome!

HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to