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
