public V _put(K key, V value) { V retval=map.put(key, value); for(Notification notif:notifs) notif.entrySet(key, value); return retval; }
public V _putIfAbsent(K key, V value) { V retval=map.putIfAbsent(key, value); for(Notification notif:notifs) notif.entrySet(key, value); return retval; }
public V _replace(K key, V value) { V retval=map.replace(key, value); for(Notification notif:notifs) notif.entrySet(key, value); return retval; }
public V _put(K key, V value) { V retval=super.put(key, value); if(persistent) { try { persistence_mgr.save(key, value); } catch(CannotPersistException cannot_persist_ex) { if(log.isErrorEnabled()) log.error("failed persisting " + key + " + " + value + ", exception=" + cannot_persist_ex); } catch(Throwable t) { if(log.isErrorEnabled()) log.error("failed persisting " + key + " + " + value + ", exception=" + Util.printStackTrace(t)); } } for(int i=0; i < notifs.size(); i++) notifs.elementAt(i).entrySet(key, value); return retval; }
public boolean _replace(K key, V oldValue, V newValue) { boolean replaced=map.replace(key, oldValue, newValue); if(replaced) { for(Notification notif:notifs) notif.entrySet(key, newValue); } return replaced; }
public V _putIfAbsent(K key, V value) { V retval=map.putIfAbsent(key, value); for(Notification notif:notifs) notif.entrySet(key, value); return retval; }
public V _put(K key, V value) { V retval=map.put(key, value); for(Notification notif:notifs) notif.entrySet(key, value); return retval; }
public V _replace(K key, V value) { V retval=map.replace(key, value); for(Notification notif:notifs) notif.entrySet(key, value); return retval; }
public boolean _replace(K key, V oldValue, V newValue) { boolean replaced=map.replace(key, oldValue, newValue); if(replaced) { for(Notification notif:notifs) notif.entrySet(key, newValue); } return replaced; }