/** {@inheritDoc} */ @Override public final boolean put(final K key, final V val) throws IgniteCheckedException { return put(key, val, null); }
IgniteBiTuple t = plan.processRow(cursor.iterator().next()); cctx.cache().put(t.getKey(), t.getValue());
/** {@inheritDoc} */ @Override public final boolean putIfAbsent(final K key, final V val) throws IgniteCheckedException { return put(key, val, ctx.noVal()); }
IgniteBiTuple t = plan.processRow(cursor.iterator().next()); cctx.cache().put(t.getKey(), t.getValue());
/** {@inheritDoc} */ @Override public final boolean replace(final K key, final V val) throws IgniteCheckedException { return put(key, val, ctx.hasVal()); }
/** {@inheritDoc} */ @Override public final boolean replace(final K key, final V oldVal, final V newVal) throws IgniteCheckedException { A.notNull(oldVal, "oldVal"); return put(key, newVal, ctx.equalsVal(oldVal)); }
@Override public Void call() throws Exception { GridCacheAdapter dataCache = dataCache(attacker); try (GridNearTxLocal tx = dataCache.txStartEx(PESSIMISTIC, REPEATABLE_READ)) { dataCache.put(DATA_KEY, 0); txStartLatch.countDown(); txCommitLatch.await(); tx.commit(); } return null; } });
cache.put(key, "val");
/** {@inheritDoc} */ @Override public final boolean put(final K key, final V val) throws IgniteCheckedException { return put(key, val, null); }
/** {@inheritDoc} */ @Override public final boolean putIfAbsent(final K key, final V val) throws IgniteCheckedException { return put(key, val, ctx.noVal()); }
/** {@inheritDoc} */ @Override public final boolean replace(final K key, final V val) throws IgniteCheckedException { return put(key, val, ctx.hasVal()); }
/** {@inheritDoc} */ @Override public final boolean replace(final K key, final V oldVal, final V newVal) throws IgniteCheckedException { A.notNull(oldVal, "oldVal"); return put(key, newVal, ctx.equalsVal(oldVal)); }