directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r354689 - /directory/network/trunk/src/java/org/apache/mina/common/IoSession.java
Date Wed, 07 Dec 2005 03:14:58 GMT
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)



Mime
View raw message