Tabnine Logo
IgniteInternalCache.localLoadCacheAsync
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/ignite

/** {@inheritDoc} */
@Override public IgniteInternalFuture<?> localLoadCacheAsync(
  @Nullable IgniteBiPredicate p,
  @Nullable Object... args
) {
  return delegate.get().localLoadCacheAsync(p, args);
}
origin: apache/ignite

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

/** {@inheritDoc} */
@Override public IgniteInternalFuture<?> localLoadCacheAsync(IgniteBiPredicate<K, V> p, @Nullable Object[] args) {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.localLoadCacheAsync(p, args);
  }
  finally {
    gate.leave(prev);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public void localLoadCache(@Nullable IgniteBiPredicate<K, V> p, @Nullable Object... args) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  try {
    if (isAsync())
      setFuture(delegate.localLoadCacheAsync(p, args));
    else
      delegate.localLoadCache(p, args);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public IgniteFuture<Void> localLoadCacheAsync(@Nullable IgniteBiPredicate<K, V> p,
  @Nullable Object... args) throws CacheException {
  return (IgniteFuture<Void>)createFuture(delegate.localLoadCacheAsync(p, args));
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public IgniteInternalFuture<?> localLoadCacheAsync(IgniteBiPredicate<K, V> p, @Nullable Object[] args) {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.localLoadCacheAsync(p, args);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public void localLoadCache(@Nullable IgniteBiPredicate<K, V> p, @Nullable Object... args) {
  try {
    if (isAsync())
      setFuture(delegate.localLoadCacheAsync(p, args));
    else
      delegate.localLoadCache(p, args);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
org.apache.ignite.internal.processors.cacheIgniteInternalCachelocalLoadCacheAsync

Javadoc

Asynchronously delegates to CacheStore#loadCache(IgniteBiInClosure,Object...) method to reload state from the underlying persistent storage. The reloaded values will then be given to the optionally passed in predicate, and if the predicate returns true, will be stored in cache. If predicate is null, then all reloaded values will be stored in cache.

Note that this method does not receive keys as a parameter, so it is up to CacheStore implementation to provide all the data to be loaded.

This method is not transactional and may end up loading a stale value into cache if another thread has updated the value immediately after it has been loaded. It is mostly useful when pre-loading the cache from underlying data store before start, or for read-only caches.

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

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Collectors (java.util.stream)
  • JCheckBox (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now