FileDocCategorySizeDatePackage
NoExpiryCacheInvalidationPolicy.javaAPI DocGlassfish v2 API3292Tue May 22 16:54:18 BST 2007oracle.toplink.essentials.descriptors.invalidation

NoExpiryCacheInvalidationPolicy

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
CacheInvalidationPolicy
see
oracle.toplink.essentials.sessions.IdentityMapAccessor

Fields Summary
Constructors Summary
Methods Summary
public longgetExpiryTimeInMillis(oracle.toplink.essentials.internal.identitymaps.CacheKey key)
INTERNAL: Since this policy implements no expiry, this will always return NO_EXPIRY

        return NO_EXPIRY;
    
public longgetRemainingValidTime(oracle.toplink.essentials.internal.identitymaps.CacheKey key)
INTERNAL: Return the remaining life of this object Override the default implementation.

        return NO_EXPIRY;
    
public booleanisInvalidated(oracle.toplink.essentials.internal.identitymaps.CacheKey key, long currentTimeMillis)
INTERNAL: This will return true if the object is set to be invalid, false otherwise.

        return key.getInvalidationState() == CacheKey.CACHE_KEY_INVALID;