예제 #1
0
 private void replaceAll(AdvancedCache cache, Map<? extends K, ? extends V> map) {
   startAtomic();
   try {
     AtomicMap<K, V> data = getDataInternal(cache);
     data.clear();
     data.putAll(map);
   } finally {
     endAtomic();
   }
 }
 @Override
 public void replaceAll(Map<? extends K, ? extends V> map) {
   startAtomic();
   try {
     AtomicMap<K, V> data = getDataInternal();
     data.clear();
     data.putAll(map);
   } finally {
     endAtomic();
   }
 }