Interface ExpirationPolicy
-
- All Known Implementing Classes:
DefaultExpirationPolicy
public interface ExpirationPolicyRepresents an expiration policy for cache entries that have a creation time stamp.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisExpired(org.apache.xmlgraphics.image.loader.cache.TimeStampProvider provider, long timestamp)Indicates whether a cache entry is expired given its creation time stamp.
-
-
-
Method Detail
-
isExpired
boolean isExpired(org.apache.xmlgraphics.image.loader.cache.TimeStampProvider provider, long timestamp)Indicates whether a cache entry is expired given its creation time stamp.- Parameters:
provider- the provider for new time stampstimestamp- the creation time stamp (the semantics ofSystem.currentTimeMillis()apply)- Returns:
- true if the entry is to be considered expired, false if not
-
-