Class FileCache.LastModifiedExpiration<T>
- java.lang.Object
-
- com.dtolabs.rundeck.core.utils.cache.FileCache.LastModifiedExpiration<T>
-
- All Implemented Interfaces:
FileCache.Expiration<T>
- Enclosing class:
- FileCache<T extends FileCache.Cacheable>
public static class FileCache.LastModifiedExpiration<T> extends java.lang.Object implements FileCache.Expiration<T>
Expires items if the lastModified of the file is greater than the cached time for the item.
-
-
Constructor Summary
Constructors Constructor Description LastModifiedExpiration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isExpired(java.io.File file, java.lang.Long cacheTime, T item)
Return true if the item associated with the file has expired, given the last timestamp associated with the item
-
-
-
Method Detail
-
isExpired
public boolean isExpired(java.io.File file, java.lang.Long cacheTime, T item)
Description copied from interface:FileCache.Expiration
Return true if the item associated with the file has expired, given the last timestamp associated with the item- Specified by:
isExpired
in interfaceFileCache.Expiration<T>
- Parameters:
file
- the filecacheTime
- the time the item was last cacheditem
- the cached item- Returns:
- true if the item should expire
-
-