EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.descriptors.invalidation
Class NoExpiryCacheInvalidationPolicy

java.lang.Object
  extended by org.eclipse.persistence.descriptors.invalidation.CacheInvalidationPolicy
      extended by org.eclipse.persistence.descriptors.invalidation.NoExpiryCacheInvalidationPolicy
All Implemented Interfaces:
java.io.Serializable

public class NoExpiryCacheInvalidationPolicy
extends CacheInvalidationPolicy

PUBLIC: A cache invalidation policy in which no objects will expire. The only way for objects to become invalid in the cache is for them to be explicitly set to invalid through method calls on the IdentityMapAccessor. This is the default cache invalidation policy.

See Also:
CacheInvalidationPolicy, IdentityMapAccessor, Serialized Form

Field Summary
 
Fields inherited from class org.eclipse.persistence.descriptors.invalidation.CacheInvalidationPolicy
isInvalidationRandomized, NO_EXPIRY, random, shouldRefreshInvalidObjectsOnClone, shouldUpdateReadTimeOnUpdate
 
Constructor Summary
NoExpiryCacheInvalidationPolicy()
           
 
Method Summary
 long getExpiryTimeInMillis(org.eclipse.persistence.internal.identitymaps.CacheKey key)
          INTERNAL: Since this policy implements no expiry, this will always return NO_EXPIRY
 long getRemainingValidTime(org.eclipse.persistence.internal.identitymaps.CacheKey key)
          INTERNAL: Return the remaining life of this object Override the default implementation.
 boolean isInvalidated(org.eclipse.persistence.internal.identitymaps.CacheKey key)
          INTERNAL: This will return true if the object is set to be invalid, false otherwise.
 boolean isInvalidated(org.eclipse.persistence.internal.identitymaps.CacheKey key, long currentTimeMillis)
          INTERNAL: This will return true if the object is set to be invalid, false otherwise.
 
Methods inherited from class org.eclipse.persistence.descriptors.invalidation.CacheInvalidationPolicy
isInvalidationRandomized, setIsInvalidationRandomized, setShouldRefreshInvalidObjectsInUnitOfWork, setShouldRefreshInvalidObjectsOnClone, setShouldUpdateReadTimeOnUpdate, shouldRefreshInvalidObjectsInUnitOfWork, shouldRefreshInvalidObjectsOnClone, shouldUpdateReadTimeOnUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoExpiryCacheInvalidationPolicy

public NoExpiryCacheInvalidationPolicy()
Method Detail

getExpiryTimeInMillis

public long getExpiryTimeInMillis(org.eclipse.persistence.internal.identitymaps.CacheKey key)
INTERNAL: Since this policy implements no expiry, this will always return NO_EXPIRY

Specified by:
getExpiryTimeInMillis in class CacheInvalidationPolicy

getRemainingValidTime

public long getRemainingValidTime(org.eclipse.persistence.internal.identitymaps.CacheKey key)
INTERNAL: Return the remaining life of this object Override the default implementation.

Overrides:
getRemainingValidTime in class CacheInvalidationPolicy

isInvalidated

public boolean isInvalidated(org.eclipse.persistence.internal.identitymaps.CacheKey key)
INTERNAL: This will return true if the object is set to be invalid, false otherwise.

Overrides:
isInvalidated in class CacheInvalidationPolicy

isInvalidated

public boolean isInvalidated(org.eclipse.persistence.internal.identitymaps.CacheKey key,
                             long currentTimeMillis)
INTERNAL: This will return true if the object is set to be invalid, false otherwise.

Specified by:
isInvalidated in class CacheInvalidationPolicy

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference