/** * Remove the entry from the Map * * @param k * @return The last value otherwise null */ public void invalidate(K k) { WXSMapMBeanImpl mbean = WXSUtils.getWXSMapMBeanManager().getBean(grid.getName(), mapName); long start = System.nanoTime(); try { tls.getMap(mapName).invalidate(k, true); mbean.getInvalidateMetrics().logTime(System.nanoTime() - start); } catch (Exception e) { logger.log(Level.SEVERE, "Exception", e); mbean.getInvalidateMetrics().logException(e); throw new ObjectGridRuntimeException(e); } }
/** * Invalidate all entries with these keys * * @param keys */ public void invalidateAll(Collection<K> keys) { WXSMapMBeanImpl mbean = WXSUtils.getWXSMapMBeanManager().getBean(grid.getName(), mapName); long start = System.nanoTime(); utils.invalidateAll(keys, bmap); mbean.getInvalidateMetrics().logTime(System.nanoTime() - start); }