Example #1
0
 /**
  * Remove the entry from the Map
  *
  * @param k
  * @return The last value otherwise null
  */
 public V remove(K k) {
   WXSMapMBeanImpl mbean = WXSUtils.getWXSMapMBeanManager().getBean(grid, mapName);
   long start = System.nanoTime();
   try {
     V rc = (V) tls.getMap(mapName).remove(k);
     mbean.getRemoveMetrics().logTime(System.nanoTime() - start);
     return rc;
   } catch (Exception e) {
     mbean.getRemoveMetrics().logException(e);
     throw new ObjectGridRuntimeException(e);
   }
 }
Example #2
0
 /**
  * Remove all entries with these keys
  *
  * @param keys
  */
 public void removeAll(Collection<K> keys) {
   WXSMapMBeanImpl mbean = WXSUtils.getWXSMapMBeanManager().getBean(grid, mapName);
   long start = System.nanoTime();
   utils.removeAll(keys, bmap);
   mbean.getRemoveMetrics().logTime(System.nanoTime() - start);
 }