summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-05-23 14:01:19 (EDT)
committerEike Stepper2008-05-23 14:01:19 (EDT)
commitce98a2e4e2e36bbb6660e48d2725dcbf07f9a50b (patch)
tree3a7f55b35761ed04472efe4db042ce99603be8a2
parent4b8c0fae1815454dc232a109028d130a79668eac (diff)
downloadcdo-ce98a2e4e2e36bbb6660e48d2725dcbf07f9a50b.zip
cdo-ce98a2e4e2e36bbb6660e48d2725dcbf07f9a50b.tar.gz
cdo-ce98a2e4e2e36bbb6660e48d2725dcbf07f9a50b.tar.bz2
[230832] Make remote invalidation configurable
https://bugs.eclipse.org/bugs/show_bug.cgi?id=230832
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ref/ReferenceValueMap.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ref/ReferenceValueMap.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ref/ReferenceValueMap.java
index 0c65251..f56cae3 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ref/ReferenceValueMap.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ref/ReferenceValueMap.java
@@ -227,11 +227,17 @@ public abstract class ReferenceValueMap<K, V> extends AbstractMap<K, V> implemen
while ((ref = (KeyedReference<K, V>)queue.poll()) != null)
{
// Slightly faster than map.get() + map.remove()
- map.remove(ref.getKey(), ref);
+ K key = ref.getKey();
+ map.remove(key, ref);
+ purged(key);
}
}
}
+ protected void purged(K key)
+ {
+ }
+
protected V dereference(KeyedReference<K, V> ref)
{
if (ref == null)