예제 #1
0
 /**
  * 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);
   }
 }
예제 #2
0
 /**
  * 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);
 }