Save This Page
Home » oscache-2.4.1-full » com.opensymphony.oscache » base » [javadoc | source]
com.opensymphony.oscache.base
public interface: EntryRefreshPolicy [javadoc | source]

All Implemented Interfaces:
    Serializable

All Known Implementing Classes:
    ExpiresRefreshPolicy, WebEntryRefreshPolicy, DummyAlwayRefreshEntryPolicy

Interface that allows custom code to be called when checking to see if a cache entry has expired. This is useful when the rules that determine when content needs refreshing are beyond the base funtionality offered by OSCache.
Method from com.opensymphony.oscache.base.EntryRefreshPolicy Summary:
needsRefresh
Method from com.opensymphony.oscache.base.EntryRefreshPolicy Detail:
 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.