public class TimeLimitedCachingStrategy extends java.lang.Object implements CachingStrategy
| Constructor and Description |
|---|
TimeLimitedCachingStrategy(int timeoutMillis)
Constructs a new caching strategy based on the given time
|
| Modifier and Type | Method and Description |
|---|---|
void |
invalidateCache()
Invalidates the current cached value.
|
boolean |
isCacheValid()
Checks whether the cache is still valid.
|
void |
validateCache()
Validates the current cached value.
|
public TimeLimitedCachingStrategy(int timeoutMillis)
timeoutMillis - the timeout for the cachepublic boolean isCacheValid()
CachingStrategyisCacheValid in interface CachingStrategypublic void validateCache()
CachingStrategyvalidateCache in interface CachingStrategypublic void invalidateCache()
CachingStrategyinvalidateCache in interface CachingStrategy