/** * Evict all nodes with a given node id from the cache. * * @param id node id to evict */ public synchronized void evictAll(NodeId id) { cache.remove(id); } }
/** * Evict all nodes with a given node id from the cache. * * @param id node id to evict */ public synchronized void evictAll(NodeId id) { cache.remove(id); } }
/** * @inheritDoc */ public void stateDestroyed(ItemState destroyed) { items.remove(destroyed.getId()); }
/** * @inheritDoc */ public void stateDiscarded(ItemState discarded) { items.remove(discarded.getId()); } }
/** * @inheritDoc */ public void stateDiscarded(ItemState discarded) { items.remove(discarded.getId()); } }
/** * @inheritDoc */ public void stateDestroyed(ItemState destroyed) { items.remove(destroyed.getId()); }
/** * Evict some node from the cache. * * @param data data to evict */ public void evict(AbstractNodeData data) { ReferenceMap map = (ReferenceMap) cache.get(data.getId()); if (map != null) { map.remove(data.getPrimaryParentId()); } }
/** * Evict some node from the cache. * * @param data data to evict */ public void evict(AbstractNodeData data) { ReferenceMap map = (ReferenceMap) cache.get(data.getId()); if (map != null) { map.remove(data.getPrimaryParentId()); } }
void forgetEntry(@Nonnull RemoteDirectoryEntry entry) { synchronized (localCache) { MapIterator i = localCache.mapIterator(); while (i.hasNext()) { Object key = i.next(); if (entry == i.getValue()) { localCache.remove(key); break; } } } }
void forgetEntry(@Nonnull RemoteDirectoryEntry entry) { synchronized (localCache) { MapIterator i = localCache.mapIterator(); while (i.hasNext()) { Object key = i.next(); if (entry == i.getValue()) { localCache.remove(key); break; } } } }