/** {@inheritDoc} */ @Override public boolean containsKeys(Collection keys) { return delegate.get().containsKey(transform(keys)); }
/** {@inheritDoc} */ @Override public boolean containsKey(K key) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); if (isAsync()) { setFuture(delegate.containsKeyAsync(key)); return false; } else return delegate.containsKey(key); }
/** {@inheritDoc} */ @Override public boolean containsKey(Object key) { return delegate.get().containsKey(keyTransformer.transform(key)); }
/** {@inheritDoc} */ @Override public boolean containsKey(K key) { if (isAsync()) { setFuture(delegate.containsKeyAsync(key)); return false; } else return delegate.containsKey(key); }
/** {@inheritDoc} */ @Override public boolean containsKey(K key) { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.containsKey(key); } finally { gate.leave(prev); } }
@Override public <K> boolean containsKey(String cacheName, K key) { return ctx.cache().cache(cacheName).containsKey(key); }
if (separated && (cache == null || !cache.containsKey(new GridCacheSetHeaderKey(dsName)))) { cacheName += "#" + dsType.name() + "_" + dsName;
/** * Success if explicit tx doesn't fail. * * @param cache Cache instance. * @throws Exception If failed. */ protected void checkStartTxSuccess(final IgniteInternalCache<Object, Object> cache) throws Exception { try (final GridNearTxLocal tx = CU.txStartInternal(cache.context(), cache, PESSIMISTIC, REPEATABLE_READ)) { assert tx != null; sleepForTxFailure(); cache.put("key", "val"); tx.commit(); } assert cache.containsKey("key"); cache.clear(); }
long jobPrepare = U.currentTimeMillis(); if (jobs.containsKey(jobId) || jobMetaCache().containsKey(jobId)) throw new IgniteCheckedException("Failed to submit job. Job with the same ID already exists: " + jobId);
/** {@inheritDoc} */ @Override public boolean containsKey(K key) { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.containsKey(key); } finally { gate.leave(prev); } }
@Override public <K> boolean containsKey(String cacheName, K key) { return ctx.cache().cache(cacheName).containsKey(key); }
if (separated && (cache == null || !cache.containsKey(new GridCacheSetHeaderKey(dsName)))) { cacheName += "#" + dsType.name() + "_" + dsName;