@SuppressWarnings({ "rawtypes", "unchecked" }) private void removeEntry(final org.infinispan.Cache cache, final Object o) { final CompoundKey key = (CompoundKey) o; final AtomicMap map = AtomicMapLookup.getAtomicMap(cache, key.getName(), false); map.remove(key); }
@SuppressWarnings({ "rawtypes", "unchecked" }) private void removeEntry(final org.infinispan.Cache cache, final Object o) { final CompoundKey key = (CompoundKey) o; final AtomicMap map = AtomicMapLookup.getAtomicMap(cache, key.getName(), false); map.remove(key); }
private V remove(AdvancedCache cache, K key) { startAtomic(); try { return getDataInternal(cache).remove(key); } finally { endAtomic(); } }
private V remove(AdvancedCache<NodeKey, AtomicMap<?, ?>> cache, Fqn fqn, K key) { startAtomic(); try { AtomicMap<K, V> map = getAtomicMap(cache, new NodeKey(fqn, NodeKey.Type.DATA)); return map == null ? null : map.remove(key); } finally { endAtomic(); } }
m.remove(key); commit = true;
structure.remove(key);
private boolean removeChild(AdvancedCache cache, Object childName) { startAtomic(); try { AtomicMap<Object, Fqn> s = getStructure(cache); Fqn childFqn = s.remove(childName); if (childFqn != null) { Node<K, V> child = new NodeImpl<K, V>(childFqn, cache, batchContainer); child.removeChildren(); child.clearData(); // this is necessary in case we have a remove and then an add on the same node, in the same tx. cache.remove(new NodeKey(childFqn, NodeKey.Type.DATA)); cache.remove(new NodeKey(childFqn, NodeKey.Type.STRUCTURE)); return true; } return false; } finally { endAtomic(); } }
Fqn childFqn = structure.remove(childName);