You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by tr...@apache.org on 2005/12/07 04:14:58 UTC

svn commit: r354689 - /directory/network/trunk/src/java/org/apache/mina/common/IoSession.java

Author: trustin
Date: Tue Dec  6 19:14:54 2005
New Revision: 354689

URL: http://svn.apache.org/viewcvs?rev=354689&view=rev
Log:
Added more description on thread safety of IoSession

Modified:
    directory/network/trunk/src/java/org/apache/mina/common/IoSession.java

Modified: directory/network/trunk/src/java/org/apache/mina/common/IoSession.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/common/IoSession.java?rev=354689&r1=354688&r2=354689&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/common/IoSession.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/common/IoSession.java Tue Dec  6 19:14:54 2005
@@ -37,7 +37,11 @@
  * 
  * <h3>Thread Safety</h3>
  * <p>
- * {@link IoSession} is thread safe.
+ * {@link IoSession} is thread-safe.  But please note that performing
+ * more than one {@link #write(Object)} calls at the same time will
+ * cause the {@link IoFilter#filterWrite(IoFilter.NextFilter, IoSession, IoFilter.WriteRequest)}
+ * is executed simnutaneously, and therefore you have to make sure the
+ * {@link IoFilter} implementations you're using are thread-safe, too. 
  * </p>
  *   
  * @author The Apache Directory Project (dev@directory.apache.org)