[jboss-svn-commits] JBL Code SVN: r15618 - labs/jbossrules/trunk/drools-core/src/main/java/org/drools.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Oct 6 09:56:49 EDT 2007


Author: mark.proctor at jboss.com
Date: 2007-10-06 09:56:49 -0400 (Sat, 06 Oct 2007)
New Revision: 15618

Modified:
   labs/jbossrules/trunk/drools-core/src/main/java/org/drools/WorkingMemory.java
Log:
-updated javadocs on notes for thread saftey issues with iterators

Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/WorkingMemory.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/WorkingMemory.java	2007-10-06 12:45:31 UTC (rev 15617)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/WorkingMemory.java	2007-10-06 13:56:49 UTC (rev 15618)
@@ -140,7 +140,8 @@
     FactHandle getFactHandle(Object object);
 
     /**
-     * Returns an Iterator for the Objects in the Working Memory. This Iterator is not thread safe.
+     * Returns an Iterator for the Objects in the Working Memory. This Iterator is not thread safe. 
+     * This means that any working memory actions during iteration may invalidate the iterator.
      * @return
      *     the Iterator
      */
@@ -149,6 +150,7 @@
     /**
      *  Returns an Iterator for the Objects in the Working Memory. This Iterator will filter out
      *  any objects that the ObjectFilter does not accept. This Iterator is not thread safe.
+     * This means that any working memory actions during iteration may invalidate the iterator.
      *  
      * @param filter
      * 
@@ -159,6 +161,7 @@
 
     /**
      * Returns an Iterator for the FactHandles in the Working Memory. This Iterator is not thread safe.
+     * This means that any working memory actions during iteration may invalidate the iterator.
      * @return
      *     the Iterator
      */    
@@ -167,6 +170,7 @@
     /**
      *  Returns an Iterator for the Objects in the Working Memory. This Iterator will filter out
      *  any objects that the ObjectFilter does not accept. This Iterator is not thread safe.
+     * This means that any working memory actions during iteration may invalidate the iterator.
      *  
      * @param filter
      * 




More information about the jboss-svn-commits mailing list