|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDependency
CacheDependency
public class CacheDependency
CacheDependency represents a dependency on an entry of the same or another cache. If the cache entry changes, disappears, or its dependencies become stale, then this dependency also becomes stale.
Field Summary | |
---|---|
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 Summary | |
---|---|
CacheDependency(Cache cache,
Object key)
Constructor. |
Method Summary | |
---|---|
boolean |
validate()
Checks if the dependency is still valid. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Cache cache
public Object key
public long lastSet
Constructor Detail |
---|
public CacheDependency(Cache cache, Object key)
cache
- The cache containing the entry to depend onkey
- Key value to depend on within that cache.Method Detail |
---|
public boolean validate()
validate
in class Dependency
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |