public class DefaultCacheEntryExpirator extends Object implements CacheEntryExpirator
CacheEntryExpirator uses unix timestamps (in miliseconds) in UTC
timezone to determine if a CacheEntry is expired or not.
This one should be used for the http header field "Expires". Example:
Expires: Tue, 20 Mar 2007 04:00:25 GMT| Modifier and Type | Field and Description |
|---|---|
static DefaultCacheEntryExpirator |
INSTANCE |
| Constructor and Description |
|---|
DefaultCacheEntryExpirator() |
public static DefaultCacheEntryExpirator INSTANCE
public boolean isExpired(long entryTimestamp)
CacheEntryExpiratorisExpired in interface CacheEntryExpiratorentryTimestamp - The value that is checked, to determine if an Entry has
expired or notCopyright © 2015 Hannes Dorfmann. All rights reserved.