[jboss-cvs] JBossAS SVN: r65968 - projects/ejb3/branches/cluster-dev/ejb3-cache/src/main/java/org/jboss/ejb3/cache/impl.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Oct 9 09:45:27 EDT 2007
Author: bstansberry at jboss.com
Date: 2007-10-09 09:45:27 -0400 (Tue, 09 Oct 2007)
New Revision: 65968
Modified:
projects/ejb3/branches/cluster-dev/ejb3-cache/src/main/java/org/jboss/ejb3/cache/impl/SimpleIntegratedObjectStore.java
Log:
Rename replicate to update
Throw ISE in insert
Modified: projects/ejb3/branches/cluster-dev/ejb3-cache/src/main/java/org/jboss/ejb3/cache/impl/SimpleIntegratedObjectStore.java
===================================================================
--- projects/ejb3/branches/cluster-dev/ejb3-cache/src/main/java/org/jboss/ejb3/cache/impl/SimpleIntegratedObjectStore.java 2007-10-09 13:45:03 UTC (rev 65967)
+++ projects/ejb3/branches/cluster-dev/ejb3-cache/src/main/java/org/jboss/ejb3/cache/impl/SimpleIntegratedObjectStore.java 2007-10-09 13:45:27 UTC (rev 65968)
@@ -102,11 +102,15 @@
Object key = entry.getId();
synchronized (cache)
{
+ if (cache.containsKey(key) || passivatedEntries.containsKey(key))
+ {
+ throw new IllegalStateException(key + " is already in store");
+ }
cache.put(key, entry);
}
}
- public void replicate(T entry)
+ public void update(T entry)
{
throw new UnsupportedOperationException("Clustering is not supported by " +
getClass().getName());
More information about the jboss-cvs-commits
mailing list