Codota Logo
IgniteInternalCache.putAllAsync
Code IndexAdd Codota to your IDE (free)

How to use
putAllAsync
method
in
org.apache.ignite.internal.processors.cache.IgniteInternalCache

Best Java code snippets using org.apache.ignite.internal.processors.cache.IgniteInternalCache.putAllAsync (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: apache/ignite

/**
 * @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);
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public IgniteInternalFuture<?> putAllAsync(@Nullable Map m) {
  return delegate.get().putAllAsync(transform(m));
}
origin: apache/ignite

/** {@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);
  }
}
origin: apache/ignite

  /** {@inheritDoc} */
  @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) {
    return c.putAllAsync(map).chain(new FixedResult(true));
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public IgniteFuture<Void> putAllAsync(Map<? extends K, ? extends V> map) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  return (IgniteFuture<Void>)createFuture(delegate.putAllAsync(map));
}
origin: apache/ignite

/** {@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);
  }
}
origin: org.apache.ignite/ignite-core

/**
 * @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);
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public IgniteFuture<Void> putAllAsync(Map<? extends K, ? extends V> map) {
  return (IgniteFuture<Void>)createFuture(delegate.putAllAsync(map));
}
origin: org.apache.ignite/ignite-core

/** {@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);
  }
}
origin: org.apache.ignite/ignite-core

  /** {@inheritDoc} */
  @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) {
    return c.putAllAsync(map).chain(new FixedResult(true));
  }
}
origin: org.apache.ignite/ignite-core

/** {@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);
  }
}
org.apache.ignite.internal.processors.cacheIgniteInternalCacheputAllAsync

Javadoc

Asynchronously stores given key-value pairs in cache. If filters are provided, then entries will be stored in cache only if they pass the filter. Note that filter check is atomic, so value stored in cache is guaranteed to be consistent with the filters.

If write-through is enabled, the stored values will be persisted to CacheStorevia CacheStore#putAll(Transaction, Map) method.

Transactions This method is transactional and will enlist the entry into ongoing transaction if there is one.

Popular methods of IgniteInternalCache

  • context
  • get
    Retrieves value mapped to the specified key from cache. Value will only be returned if its entry pas
  • affinity
    Gets affinity service to provide information about data partitioning and distribution.
  • configuration
    Gets configuration bean for this cache.
  • containsKey
  • getAndPut
    Stores given key-value pair in cache. If filters are provided, then entries will be stored in cache
  • getAndPutIfAbsent
    Stores given key-value pair in cache only if cache had no previous mapping for it. If cache previous
  • invoke
  • invokeAsync
  • put
    Stores given key-value pair in cache. If filters are provided, then entries will be stored in cache
  • size
  • cache
    Gets base cache for this projection.
  • size,
  • cache,
  • clear,
  • clearLocallyAll,
  • isEmpty,
  • isIgfsDataCache,
  • keySet,
  • localEntries,
  • localPeek,
  • lock

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now