|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.oscache.web.filter.ExpiresRefreshPolicy
public class ExpiresRefreshPolicy
Checks if a cache filter entry has expired. This is useful when expires header are used in the response.
| Constructor Summary | |
|---|---|
ExpiresRefreshPolicy(int refreshPeriod)
Constructor ExpiresRefreshPolicy. |
|
| Method Summary | |
|---|---|
boolean |
needsRefresh(CacheEntry entry)
Indicates whether the supplied CacheEntry needs to be refreshed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpiresRefreshPolicy(int refreshPeriod)
refreshPeriod - the refresh period in seconds| Method Detail |
|---|
public boolean needsRefresh(CacheEntry entry)
CacheEntry needs to be refreshed.
This will be called when retrieving an entry from the cache - if this method
returns true then a NeedsRefreshException will be
thrown.
needsRefresh in interface EntryRefreshPolicyentry - The cache entry which is ignored.
true if the content needs refreshing, false otherwise.NeedsRefreshException,
CacheEntry
|
OSCache Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||