Codota Logo
CacheInvalidationPolicy.shouldRefreshInvalidObjectsOnClone
Code IndexAdd Codota to your IDE (free)

How to use
shouldRefreshInvalidObjectsOnClone
method
in
org.eclipse.persistence.descriptors.invalidation.CacheInvalidationPolicy

Best Java code snippets using org.eclipse.persistence.descriptors.invalidation.CacheInvalidationPolicy.shouldRefreshInvalidObjectsOnClone (Showing top 2 results out of 315)

  • Common ways to obtain CacheInvalidationPolicy
private void myMethod () {
CacheInvalidationPolicy c =
  • Codota IconClassDescriptor classDescriptor;classDescriptor.getCacheInvalidationPolicy()
  • Smart code suggestions by Codota
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Check if the object is invalid and *should* be refreshed.
 * This is used to ensure that no invalid objects are cloned.
 */
public boolean isConsideredInvalid(Object object, CacheKey cacheKey, ClassDescriptor descriptor) {
  if (cacheKey.getObject() != null) {
    CacheInvalidationPolicy cachePolicy = descriptor.getCacheInvalidationPolicy();
    // BUG#6671556 refresh invalid objects when accessed in the unit of work.
    return (cachePolicy.shouldRefreshInvalidObjectsOnClone() && cachePolicy.isInvalidated(cacheKey));
  }
  return false;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Check if the object is invalid and *should* be refreshed.
 * This is used to ensure that no invalid objects are cloned.
 */
public boolean isConsideredInvalid(Object object, CacheKey cacheKey, ClassDescriptor descriptor) {
  if (cacheKey.getObject() != null) {
    CacheInvalidationPolicy cachePolicy = descriptor.getCacheInvalidationPolicy();
    // BUG#6671556 refresh invalid objects when accessed in the unit of work.
    return (cachePolicy.shouldRefreshInvalidObjectsOnClone() && cachePolicy.isInvalidated(cacheKey));
  }
  return false;
}
org.eclipse.persistence.descriptors.invalidationCacheInvalidationPolicyshouldRefreshInvalidObjectsOnClone

Javadoc

Determines if expired object registered in the unit of work should be refreshed, default true.

Popular methods of CacheInvalidationPolicy

  • getExpiryTimeInMillis
    INTERNAL: Get the next time when this object will become invalid
  • getRemainingValidTime
    INTERNAL: Return the remaining life of this object
  • isInvalidated
  • shouldUpdateReadTimeOnUpdate
    PUBLIC: Return whether objects affected by this CacheInvalidationPolicy should have the read time on
  • clone
  • setIsInvalidationRandomized
    PUBLIC: Allows the timeToLive to be randomized to avoid bottlenecks.
  • setShouldRefreshInvalidObjectsOnClone
    PUBLIC: Set if expired object should be refreshed prior to cloning, default is true. Applies to Prot
  • setShouldUpdateReadTimeOnUpdate
    PUBLIC: Set whether to update the stored time an object was read when an object is updated. When the
  • shouldRefreshInvalidObjectsInUnitOfWork
    PUBLIC: Return if expired object registered in the unit of work should be refreshed.

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • String (java.lang)
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
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