public class NoExpiryCacheInvalidationPolicy extends CacheInvalidationPolicy
NO_EXPIRY| Constructor and Description |
|---|
NoExpiryCacheInvalidationPolicy() |
| Modifier and Type | Method and Description |
|---|---|
long |
getExpiryTimeInMillis(CacheKey key)
INTERNAL:
Since this policy implements no expiry, this will always return NO_EXPIRY
|
long |
getRemainingValidTime(CacheKey key)
INTERNAL:
Return the remaining life of this object
Override the default implementation.
|
boolean |
isInvalidated(CacheKey key)
INTERNAL:
This will return true if the object is set to be invalid, false otherwise.
|
boolean |
isInvalidated(CacheKey key,
long currentTimeMillis)
INTERNAL:
This will return true if the object is set to be invalid, false otherwise.
|
clone, initialize, isInvalidationRandomized, setIsInvalidationRandomized, setShouldRefreshInvalidObjectsInUnitOfWork, setShouldRefreshInvalidObjectsOnClone, setShouldUpdateReadTimeOnUpdate, shouldRefreshInvalidObjectsInUnitOfWork, shouldRefreshInvalidObjectsOnClone, shouldUpdateReadTimeOnUpdatepublic long getExpiryTimeInMillis(CacheKey key)
getExpiryTimeInMillis in class CacheInvalidationPolicypublic long getRemainingValidTime(CacheKey key)
getRemainingValidTime in class CacheInvalidationPolicypublic boolean isInvalidated(CacheKey key)
isInvalidated in class CacheInvalidationPolicypublic boolean isInvalidated(CacheKey key, long currentTimeMillis)
isInvalidated in class CacheInvalidationPolicyEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference