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

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

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

origin: apache/ignite

  /** {@inheritDoc} */
  @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) {
    return c.getAsync(key);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public IgniteInternalFuture getAsync(Object key) {
  return delegate.get().getAsync(keyTransformer.transform(key));
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public IgniteFuture<V> getAsync(K key) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  return createFuture(delegate.getAsync(key));
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public IgniteInternalFuture<V> getAsync(K key) {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.getAsync(key);
  }
  finally {
    gate.leave(prev);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public V get(K key) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  try {
    if (isAsync()) {
      setFuture(delegate.getAsync(key));
      return null;
    }
    else
      return delegate.get(key);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

IgniteInternalFuture<byte[]> fut = dataCachePrj.getAsync(key);
origin: org.apache.ignite/ignite-core

  /** {@inheritDoc} */
  @Override public IgniteInternalFuture<?> applyx(IgniteInternalCache<Object, Object> c, GridKernalContext ctx) {
    return c.getAsync(key);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public IgniteFuture<V> getAsync(K key) {
  return createFuture(delegate.getAsync(key));
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public IgniteInternalFuture<V> getAsync(K key) {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.getAsync(key);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public V get(K key) {
  try {
    if (isAsync()) {
      setFuture(delegate.getAsync(key));
      return null;
    }
    else
      return delegate.get(key);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: org.apache.ignite/ignite-core

IgniteInternalFuture<byte[]> fut = dataCachePrj.getAsync(key);
org.apache.ignite.internal.processors.cacheIgniteInternalCachegetAsync

Javadoc

Asynchronously retrieves value mapped to the specified key from cache. Value will only be returned if its entry passed the optional filter provided. Filter check is atomic, and therefore the returned value is guaranteed to be consistent with the filter. The return value of nullmeans entry did not pass the provided filter or cache has no mapping for the key.

If the value is not present in cache, then it will be looked up from swap storage. If it's not present in swap, or if swap is disabled, and if read-through is allowed, value will be loaded from CacheStore persistent storage via CacheStore#load(Transaction, Object) 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

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Notification (javax.management)
  • JList (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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