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

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

Best Java code snippets using org.apache.ignite.internal.processors.cache.IgniteInternalCache.clearLocallyAll (Showing top 6 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

/** {@inheritDoc} */
@Override public void clearLocallyAll(Set keys, boolean srv, boolean near, boolean readers) {
  delegate.get().clearLocallyAll((Set<?>)transform(keys), srv, near, readers);
}
origin: apache/ignite

/** {@inheritDoc} */
@Nullable @Override public Object localExecute(@Nullable IgniteInternalCache cache) {
  if (cache != null)
    cache.clearLocallyAll(keys, clearServerCache(), clearNearCache(), true);
  return null;
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public void clearLocallyAll(Set<? extends K> keys, boolean srv, boolean near, boolean readers) {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    delegate.clearLocallyAll(keys, srv, near, readers);
  }
  finally {
    gate.leave(prev);
  }
}
origin: apache/ignite

/**
 * @throws Exception If failed.
 */
@Test
public void testCacheIdleVerify() throws Exception {
  IgniteEx ignite = (IgniteEx)startGrids(2);
  ignite.cluster().active(true);
  createCacheAndPreload(ignite, 100);
  injectTestSystemOut();
  assertEquals(EXIT_CODE_OK, execute("--cache", "idle_verify"));
  assertTrue(testOut.toString().contains("no conflicts have been found"));
  HashSet<Integer> clearKeys = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5, 6));
  ignite.context().cache().cache(DEFAULT_CACHE_NAME).clearLocallyAll(clearKeys, true, true, true);
  assertEquals(EXIT_CODE_OK, execute("--cache", "idle_verify"));
  assertTrue(testOut.toString().contains("conflict partitions"));
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Nullable @Override public Object localExecute(@Nullable IgniteInternalCache cache) {
  if (cache != null)
    cache.clearLocallyAll(keys, clearServerCache(), clearNearCache(), true);
  return null;
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public void clearLocallyAll(Set<? extends K> keys, boolean srv, boolean near, boolean readers) {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    delegate.clearLocallyAll(keys, srv, near, readers);
  }
  finally {
    gate.leave(prev);
  }
}
org.apache.ignite.internal.processors.cacheIgniteInternalCacheclearLocallyAll

Javadoc

Clears entries from this cache and swap storage only if the entry is not currently locked, and is not participating in a transaction.

Note that this operation is local as it merely clears an entry from local cache. It does not remove entries from remote caches or from underlying persistent storage.

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,
  • isEmpty,
  • isIgfsDataCache,
  • keySet,
  • localEntries,
  • localPeek,
  • lock

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getSystemService (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JComboBox (javax.swing)
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