public class StickyCachingStrategy extends java.lang.Object implements CachingStrategy
| Constructor and Description |
|---|
StickyCachingStrategy()
Constructs a new caching strategy that keep the cache valid until told otherwise
|
| 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 StickyCachingStrategy()
timeoutMillis - the timeout for the cachepublic boolean isCacheValid()
CachingStrategyisCacheValid in interface CachingStrategypublic void validateCache()
CachingStrategyvalidateCache in interface CachingStrategypublic void invalidateCache()
CachingStrategyinvalidateCache in interface CachingStrategy