|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ashkay.strategies.TimeExpirationCachingStrategy
TimeExpirationCachingStrategy expires objects in the cache after a set amount of time.
Constructor Summary | |
TimeExpirationCachingStrategy(long timeOut)
Creates the caching strategy with the specified timeout. |
Method Summary | |
CacheEntry |
prepare(CacheEntry entry)
Prepares the cache entry for caching with this strategy. NOTE: Be Careful: a caching strategy is allowed to return a different CacheEntry, so make sure that you store the results of this method and don't assume the symantics of pass by reference. |
boolean |
validate(CacheEntry entry)
Validates this cache entry for this caching strategy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeExpirationCachingStrategy(long timeOut)
timeOut
- - the time out length for the cache entriesMethod Detail |
public CacheEntry prepare(CacheEntry entry)
CachingStrategy
prepare
in interface CachingStrategy
public boolean validate(CacheEntry entry)
CachingStrategy
validate
in interface CachingStrategy
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |