Interface FileCache.Expiration<T>
-
- All Known Implementing Classes:
FileCache.LastModifiedExpiration
- Enclosing class:
- FileCache<T extends FileCache.Cacheable>
public static interface FileCache.Expiration<T>Determines whether a cached item has expired
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisExpired(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
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- Parameters:
file- the filecacheTime- the time the item was last cacheditem- the cached item- Returns:
- true if the item should expire
-
-