congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IgniteInternalCache.unlockAll
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/ignite

/** {@inheritDoc} */
@Override public void unlockAll(@Nullable Collection keys) throws IgniteCheckedException {
  delegate.get().unlockAll(transform(keys));
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public void unlockAll(@Nullable Collection<? extends K> keys) throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    delegate.unlockAll(keys);
  }
  finally {
    gate.leave(prev);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public void unlock() {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    if (lockedThread != Thread.currentThread()) {
      throw new IllegalStateException("Failed to unlock keys (did current thread acquire lock " +
        "with this lock instance?).");
    }
    assert cntr > 0;
    cntr--;
    if (cntr == 0)
      lockedThread = null;
    delegate.unlockAll(keys);
  }
  catch (IgniteCheckedException e) {
    throw new CacheException(e.getMessage(), e);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public void unlockAll(@Nullable Collection<? extends K> keys) throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    delegate.unlockAll(keys);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public void unlock() {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    if (lockedThread != Thread.currentThread()) {
      throw new IllegalStateException("Failed to unlock keys (did current thread acquire lock " +
        "with this lock instance?).");
    }
    assert cntr > 0;
    cntr--;
    if (cntr == 0)
      lockedThread = null;
    delegate.unlockAll(keys);
  }
  catch (IgniteCheckedException e) {
    throw new CacheException(e.getMessage(), e);
  }
  finally {
    gate.leave(prev);
  }
}
org.apache.ignite.internal.processors.cacheIgniteInternalCacheunlockAll

Javadoc

Unlocks given keys only if current thread owns the locks. Only the keys that have been locked by calling thread and pass through the filter (if any) will be unlocked. If none of the key locks is owned by current thread, then this method will do nothing. Transactions Locks are not transactional and should not be used from within transactions. If you do need explicit locking within transaction, then you should use TransactionConcurrency#PESSIMISTIC concurrency control for transaction which will acquire explicit locks for relevant cache operations.

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
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • Kernel (java.awt.image)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Top 17 Plugins for Android Studio
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