[jboss-cvs] JBossCache/src/org/jboss/cache/loader ...
Manik Surtani
manik at jboss.org
Mon Jun 18 17:42:20 EDT 2007
User: msurtani
Date: 07/06/18 17:42:20
Modified: src/org/jboss/cache/loader CacheLoader.java
Log:
Experiment with cache loader thread safety
Revision Changes Path
1.18 +5 -1 JBossCache/src/org/jboss/cache/loader/CacheLoader.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheLoader.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/loader/CacheLoader.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- CacheLoader.java 17 Apr 2007 07:47:54 -0000 1.17
+++ CacheLoader.java 18 Jun 2007 21:42:20 -0000 1.18
@@ -6,6 +6,7 @@
*/
package org.jboss.cache.loader;
+import net.jcip.annotations.ThreadSafe;
import org.jboss.cache.CacheSPI;
import org.jboss.cache.Fqn;
import org.jboss.cache.Modification;
@@ -35,6 +36,9 @@
* An {@link org.jboss.cache.loader.AbstractCacheLoader} is provided as a convenient starting place
* when implementing your own {@link org.jboss.cache.loader.CacheLoader}.
* <p/>
+ * It is important to note that all implementations are thread safe, as concurrent reads and writes, potentially even to
+ * the same {@link Fqn}, are possible.
+ * <p/>
*
* @author <a href="mailto:manik at jboss.org">Manik Surtani (manik at jboss.org)</a>
* @see CacheSPI
@@ -42,7 +46,7 @@
* @see org.jboss.cache.loader.AbstractCacheLoader
* @since 2.0.0
*/
-
+ at ThreadSafe
public interface CacheLoader
{
/**
More information about the jboss-cvs-commits
mailing list