/** {@inheritDoc} */ @Override public IgniteFuture<Void> localLoadCacheAsync(@Nullable IgniteBiPredicate<K, V> p, @Nullable Object... args) throws CacheException { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return (IgniteFuture<Void>)createFuture(delegate.localLoadCacheAsync(p, args)); }
/** {@inheritDoc} */ @Nullable @Override public V localPeek(K key, CachePeekMode... peekModes) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { return delegate.localPeek(key, peekModes); } catch (IgniteException | IgniteCheckedException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Override public long localSizeLong(CachePeekMode... peekModes) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { return delegate.localSizeLong(peekModes); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Override public IgniteFuture<V> getAsync(K key) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return createFuture(delegate.getAsync(key)); }
/** {@inheritDoc} */ @Override public IgniteFuture<Boolean> putIfAbsentAsync(K key, V val) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return createFuture(delegate.putIfAbsentAsync(key, val)); }
/** {@inheritDoc} */ @Override public IgniteFuture<Boolean> removeAsync(K key, V oldVal) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return createFuture(delegate.removeAsync(key, oldVal)); }
/** {@inheritDoc} */ @Override public IgniteFuture<Boolean> replaceAsync(K key, V oldVal, V newVal) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return createFuture(delegate.replaceAsync(key, oldVal, newVal)); }
/** {@inheritDoc} */ @Override public IgniteFuture<V> getAndReplaceAsync(K key, V val) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return createFuture(delegate.getAndReplaceAsync(key, val)); }
/** {@inheritDoc} */ @Override public IgniteFuture<Void> removeAllAsync(Set<? extends K> keys) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return (IgniteFuture<Void>)createFuture(delegate.removeAllAsync(keys)); }
/** {@inheritDoc} */ @Override public IgniteFuture<Long> sizeLongAsync(int part, CachePeekMode... peekModes) throws CacheException { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return createFuture(delegate.sizeLongAsync(part, peekModes)); }
/** {@inheritDoc} */ @Override public IgniteFuture<Map<K, V>> getAllAsync(Set<? extends K> keys) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return createFuture(delegate.getAllAsync(keys)); }
/** {@inheritDoc} */ @Override public IgniteFuture<Void> clearAllAsync(Set<? extends K> keys) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return (IgniteFuture<Void>)createFuture(delegate.clearAllAsync(keys)); }
/** {@inheritDoc} */ @Override public IgniteFuture<Void> clearAsync() { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return (IgniteFuture<Void>)createFuture(delegate.clearAsync()); }
/** {@inheritDoc} */ @Override public IgniteFuture<V> getAndPutIfAbsentAsync(K key, V val) throws CacheException { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return createFuture(delegate.getAndPutIfAbsentAsync(key, val)); }
/** {@inheritDoc} */ @Override public int localSize(CachePeekMode... peekModes) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { return delegate.localSize(peekModes); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Override public IgniteFuture<Boolean> removeAsync(K key) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return createFuture(delegate.removeAsync(key)); }
/** {@inheritDoc} */ @Override public Collection<? extends QueryDetailMetrics> queryDetailMetrics() { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return delegate.context().queries().detailMetrics(); }
/** {@inheritDoc} */ @Override public void resetQueryMetrics() { IgniteInternalCache<K, V> delegate = getDelegateSafe(); delegate.context().queries().resetMetrics(); }
/** {@inheritDoc} */ @Override public IgniteFuture<Void> preloadPartitionAsync(int part) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { return (IgniteFuture<Void>)createFuture(delegate.preloadPartitionAsync(part)); } catch (IgniteCheckedException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Override public Lock lockAll(final Collection<? extends K> keys) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); GridCacheContext<K, V> ctx = getContextSafe(); //TODO: IGNITE-9324: add explicit locks support. MvccUtils.verifyMvccOperationSupport(ctx, "Lock"); return new CacheLockImpl<>(ctx.gate(), delegate, ctx.operationContextPerCall(), keys); }