Class NoExpiryCacheInvalidationPolicy

    • 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