Thanks, that is what I wanted to know.
No, the attribute is set after session creation. 
Chris. 

Am 27. Juli 2017 17:57:45 MESZ schrieb "Emmanuel Lécharny" 
<elecha...@gmail.com>:
>
>
>Le 27/07/2017 à 17:22, Christoph John a écrit :
>> But if I access IoSession.getAttribute() and setAttribute() from
>> different threads: can't it happen that one thread does not "see" if
>I
>> put an attribute into the IoSession? 
>Not if you add this attribute when you create the session : it will be
>present no mater what for every threads. Of course, you should not
>remove it from the session.
>
>And btw, the session attributes are stored in a concurrentHashmap, so
>accessing it is threadsafe.
>
>-- 
>Emmanuel Lecharny
>
>Symas.com
>directory.apache.org

Reply via email to