public class NoExpiryCacheInvalidationPolicy extends CacheInvalidationPolicy
isInvalidationRandomized, NO_EXPIRY, random, shouldRefreshInvalidObjectsOnClone, shouldUpdateReadTimeOnUpdate| Constructor and Description |
|---|
NoExpiryCacheInvalidationPolicy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, initialize, isInvalidationRandomized, setIsInvalidationRandomized, setShouldRefreshInvalidObjectsOnClone, setShouldUpdateReadTimeOnUpdate, shouldRefreshInvalidObjectsOnClone, shouldUpdateReadTimeOnUpdatepublic long getExpiryTimeInMillis(org.eclipse.persistence.internal.identitymaps.CacheKey key)
getExpiryTimeInMillis in class CacheInvalidationPolicypublic long getRemainingValidTime(org.eclipse.persistence.internal.identitymaps.CacheKey key)
getRemainingValidTime in class CacheInvalidationPolicypublic boolean isInvalidated(org.eclipse.persistence.internal.identitymaps.CacheKey key)
isInvalidated in class CacheInvalidationPolicypublic boolean isInvalidated(org.eclipse.persistence.internal.identitymaps.CacheKey key,
long currentTimeMillis)
isInvalidated in class CacheInvalidationPolicyCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.