Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.opensymphony.oscache.base
Interface EntryRefreshPolicy

All Superinterfaces:
  java.io.Serializable

All Known Subinterfaces:
  WebEntryRefreshPolicy

public interface EntryRefreshPolicy
extends java.io.Serializable

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.

Version:
  $Revision: 1.1 $
Author:
  Francois Beauregard

Method Summary
`boolean` | `needsRefresh(CacheEntry entry)` Indicates whether the supplied `CacheEntry` needs to be refreshed.

Method Detail

### needsRefresh

    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.

  Parameters:
    `entry` - The cache entry that is being tested.
  Returns:
    `true` if the content needs refreshing, `false` otherwise.
  See Also:
    `NeedsRefreshException`, `CacheEntry`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| See www.opensymphony.com for more information.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD