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

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

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

origin: org.eclipse.persistence/org.eclipse.persistence.core

  public Object clone() {
    CacheInvalidationPolicy clone = null;

    try {
      clone = (CacheInvalidationPolicy)super.clone();
      clone.setShouldUpdateReadTimeOnUpdate(this.shouldUpdateReadTimeOnUpdate);
      clone.setShouldRefreshInvalidObjectsOnClone(this.shouldRefreshInvalidObjectsOnClone);
      clone.setIsInvalidationRandomized(this.isInvalidationRandomized);
    } catch (Exception exception) {
      throw new InternalError("clone failed");
    }

    return clone;
  }
}
origin: com.haulmont.thirdparty/eclipselink

  public Object clone() {
    CacheInvalidationPolicy clone = null;
    
    try {
      clone = (CacheInvalidationPolicy)super.clone();
      clone.setShouldUpdateReadTimeOnUpdate(this.shouldUpdateReadTimeOnUpdate);
      clone.setShouldRefreshInvalidObjectsOnClone(this.shouldRefreshInvalidObjectsOnClone);
      clone.setIsInvalidationRandomized(this.isInvalidationRandomized);            
    } catch (Exception exception) {
      throw new InternalError("clone failed");
    }
    
    return clone;
  }
}
org.eclipse.persistence.descriptors.invalidationCacheInvalidationPolicysetShouldUpdateReadTimeOnUpdate

Javadoc

PUBLIC: Set whether to update the stored time an object was read when an object is updated. When the read time is updated, it indicates to EclipseLink that the data in the object is up to date. This means that cache invalidation checks will occur relative to the new read time. By default, the read time will not be updated when an object is updated. Often it is possible to be confident that the object is up to date after an update because otherwise the update will fail because of the locking policies in use.

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
  • shouldRefreshInvalidObjectsOnClone
    PUBLIC: Return if expired object should be refreshed prior to cloning. Applies to Protected Entities
  • shouldRefreshInvalidObjectsInUnitOfWork
    PUBLIC: Return if expired object registered in the unit of work should be refreshed.

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Menu (java.awt)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 25 Plugins for Webstorm
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