Codota Logo
CollectionRegionAccessStrategy.lockItem
Code IndexAdd Codota to your IDE (free)

How to use
lockItem
method
in
org.hibernate.cache.access.CollectionRegionAccessStrategy

Best Java code snippets using org.hibernate.cache.access.CollectionRegionAccessStrategy.lockItem (Showing top 4 results out of 315)

  • Common ways to obtain CollectionRegionAccessStrategy
private void myMethod () {
CollectionRegionAccessStrategy c =
  • Codota IconEhcacheCollectionRegion ehcacheCollectionRegion;EhcacheCollectionRegion ehcacheCollectionRegion2;new ReadOnlyEhcacheCollectionRegionAccessStrategy(ehcacheCollectionRegion, ehcacheCollectionRegion2.getSettings())
  • Codota IconEhcacheCollectionRegion ehcacheCollectionRegion;EhcacheCollectionRegion ehcacheCollectionRegion2;new NonStrictReadWriteEhcacheCollectionRegionAccessStrategy(ehcacheCollectionRegion, ehcacheCollectionRegion2.getSettings())
  • Codota IconEhcacheCollectionRegion ehcacheCollectionRegion;EhcacheCollectionRegion ehcacheCollectionRegion2;new ReadWriteEhcacheCollectionRegionAccessStrategy(ehcacheCollectionRegion, ehcacheCollectionRegion2.getSettings())
  • Smart code suggestions by Codota
}
origin: net.sf.ehcache/ehcache

/**
 * {@inheritDoc}
 *
 * @see org.hibernate.cache.access.EntityRegionAccessStrategy#lockItem(java.lang.Object, java.lang.Object)
 */
public SoftLock lockItem(Object key, Object version) throws CacheException {
  try {
    return actualStrategy.lockItem(key, version);
  } catch (NonStopCacheException nonStopCacheException) {
    hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException);
    return null;
  }
}
origin: net.sf.ehcache.internal/ehcache-core

/**
 * {@inheritDoc}
 *
 * @see org.hibernate.cache.access.EntityRegionAccessStrategy#lockItem(java.lang.Object, java.lang.Object)
 */
public SoftLock lockItem(Object key, Object version) throws CacheException {
  try {
    return actualStrategy.lockItem(key, version);
  } catch (NonStopCacheException nonStopCacheException) {
    hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException);
    return null;
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

/**
 * {@inheritDoc}
 *
 * @see org.hibernate.cache.access.EntityRegionAccessStrategy#lockItem(java.lang.Object, java.lang.Object)
 */
public SoftLock lockItem(Object key, Object version) throws CacheException {
  try {
    return actualStrategy.lockItem(key, version);
  } catch (NonStopCacheException nonStopCacheException) {
    hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException);
    return null;
  }
}
origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

/**
 * {@inheritDoc}
 *
 * @see org.hibernate.cache.access.EntityRegionAccessStrategy#lockItem(java.lang.Object, java.lang.Object)
 */
public SoftLock lockItem(Object key, Object version) throws CacheException {
  try {
    return actualStrategy.lockItem(key, version);
  } catch (NonStopCacheException nonStopCacheException) {
    hibernateNonstopExceptionHandler.handleNonstopCacheException(nonStopCacheException);
    return null;
  }
}
org.hibernate.cache.accessCollectionRegionAccessStrategylockItem

Popular methods of CollectionRegionAccessStrategy

  • get
  • getRegion
  • evict
  • evictAll
  • lockRegion
  • putFromLoad
  • remove
  • removeAll
  • unlockItem
  • unlockRegion

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Kernel (java.awt.image)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Notification (javax.management)
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