com.dtolabs.rundeck.core.utils.cache
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
 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

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 file
cacheTime - the time the item was last cached
item - the cached item
Returns:
true if the item should expire