/** * @param blocks Blocks to write. * @return Future that will be completed after put is done. */ private IgniteInternalFuture<?> storeBlocksAsync(Map<IgfsBlockKey, byte[]> blocks) { assert !blocks.isEmpty(); return dataCachePrj.putAllAsync(blocks); }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> putAllAsync(@Nullable Map m) { return delegate.get().putAllAsync(transform(m)); }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> putAllAsync(@Nullable Map<? extends K, ? extends V> m) { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.putAllAsync(m); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public IgniteFuture<Void> putAllAsync(Map<? extends K, ? extends V> map) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); return (IgniteFuture<Void>)createFuture(delegate.putAllAsync(map)); }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) { return c.putAllAsync(map).chain(new FixedResult(true)); } }
/** {@inheritDoc} */ @Override public void putAll(Map<? extends K, ? extends V> map) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { if (isAsync()) setFuture(delegate.putAllAsync(map)); else delegate.putAll(map); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** * @param blocks Blocks to write. * @return Future that will be completed after put is done. */ @SuppressWarnings("unchecked") private IgniteInternalFuture<?> storeBlocksAsync(Map<IgfsBlockKey, byte[]> blocks) { assert !blocks.isEmpty(); return dataCachePrj.putAllAsync(blocks); }
/** {@inheritDoc} */ @Override public IgniteFuture<Void> putAllAsync(Map<? extends K, ? extends V> map) { return (IgniteFuture<Void>)createFuture(delegate.putAllAsync(map)); }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> putAllAsync(@Nullable Map<? extends K, ? extends V> m) { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.putAllAsync(m); } finally { gate.leave(prev); } }
/** {@inheritDoc} */ @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) { return c.putAllAsync(map).chain(new FixedResult(true)); } }
/** {@inheritDoc} */ @Override public void putAll(Map<? extends K, ? extends V> map) { try { if (isAsync()) setFuture(delegate.putAllAsync(map)); else delegate.putAll(map); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }