/** {@inheritDoc} */ @Nullable @Override public V put(K k, V v) { A.notNull(k, "k", v, "v"); V ret = super.put(k, v); onPut(); return ret; }
/** {@inheritDoc} */ @Nullable @Override public V putIfAbsent(K k, V v) { A.notNull(k, "k", v, "v"); V ret = super.putIfAbsent(k, v); // Handle size only if put succeeded. if (ret == null) onPut(); return ret; }
/** {@inheritDoc} */ @Override public GridFuture<?> addData(K key, V val) throws GridException, IllegalStateException { A.notNull(key, "key"); return addData(new Entry0<>(key, val)); }
/** {@inheritDoc} */ @Override public GridFuture<?> addData(Map.Entry<K, V> entry) throws GridException, IllegalStateException { A.notNull(entry, "entry"); return addData(F.asList(entry)); }
/** {@inheritDoc} */ @Override public GridFuture<?> addData(Map<K, V> entries) throws IllegalStateException { A.notNull(entries, "entries"); return addData(entries.entrySet()); }
/** {@inheritDoc} */ @Override public void updater(GridDataLoadCacheUpdater<K, V> updater) { A.notNull(updater, "updater"); this.updater = updater; }