public class CacheDependency extends Dependency
Modifier and Type | Field and Description |
---|---|
Cache |
cache
The cache we're depending on
|
Object |
key
The key within that cache we're depending on
|
long |
lastSet
The set time of the cache entry when this dependency was created.
|
Constructor and Description |
---|
CacheDependency(Cache cache,
Object key)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
validate()
Checks if the dependency is still valid.
|
public Cache cache
public Object key
public long lastSet
public CacheDependency(Cache cache, Object key)
cache
- The cache containing the entry to depend onkey
- Key value to depend on within that cache.public boolean validate()
validate
in class Dependency