Save This Page
Home » oscache-2.4.1-full » com.opensymphony.oscache » web » filter » [javadoc | source]
com.opensymphony.oscache.web.filter
public class: ExpiresRefreshPolicy [javadoc | source]
java.lang.Object
   com.opensymphony.oscache.web.filter.ExpiresRefreshPolicy

All Implemented Interfaces:
    EntryRefreshPolicy

Checks if a cache filter entry has expired. This is useful when expires header are used in the response.
Constructor:
 public ExpiresRefreshPolicy(int refreshPeriod) 
Method from com.opensymphony.oscache.web.filter.ExpiresRefreshPolicy Summary:
getRefreshPeriod,   needsRefresh,   setRefreshPeriod
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.oscache.web.filter.ExpiresRefreshPolicy Detail:
 public long getRefreshPeriod() 
 public boolean needsRefresh(CacheEntry entry) 
    Indicates whether the supplied 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.
 public  void setRefreshPeriod(long refreshPeriod)