synchronized public void remove(Object key) { delegate.remove(key); }
public void put(String classname, ClassReader reader) { //Something strange is going on with the policy, sometimes it says duplicate entries even when I test with a peek/get, so always remove the existing entry policy.remove(classname); policy.insert(classname, reader); }
public void put(String classname, CtClass clazz) { synchronized (policy) { //Something strange is going on with the policy, sometimes it says duplicate entries even when I test with a peek/get, so always remove the existing entry policy.remove(classname); policy.insert(classname, clazz); } }
public V remove(K key) { V old = (V)policy.get(key); policy.remove(key); return old; }
/** * Remove an object from the local cache *without* any locking * (synchronized, etc.) to avoid huge cluster-wide deadlock situations * We have to unschedule passivation as well as the bean may be * used on another node. */ public void invalidateLocally (Object id) { if (id == null) return; try { getCache().remove(id); } catch (Exception e) { log.debug (e); } }
/** * From InstanceCache interface * @jmx:managed-operation */ public void remove(Object id) { if (id == null) throw new IllegalArgumentException("Can't remove an object using a null key"); synchronized (getCacheLock()) { if (getCache().peek(id) != null) { getCache().remove(id); } } }
domainCache.remove(principal); domainCache.insert(principal, info); if (trace)
domainCache.remove(principal); domainCache.insert(principal, info); if( trace )