|
Guvnor - Services API 6.0.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.guvnor.common.services.backend.cache.LRUCache<Path,V>
public abstract class LRUCache<Path,V>
A simple LRU cache keyed on Paths
| Constructor Summary | |
|---|---|
LRUCache()
|
|
| Method Summary | |
|---|---|
V |
getEntry(Path path)
Retrieve the cache entry for the specified key. |
Set<Path> |
getKeys()
|
void |
invalidateCache()
Invalidate the entire cache |
void |
invalidateCache(Path path)
Invalidate the cache for a specific key. |
void |
setEntry(Path path,
V value)
Set the cache entry for the specified path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LRUCache()
| Method Detail |
|---|
public V getEntry(Path path)
Cache
getEntry in interface Cache<Path,V>path - The cache entry key
public void setEntry(Path path,
V value)
Cache
setEntry in interface Cache<Path,V>path - The cache entry keyvalue - The cache entrypublic void invalidateCache()
Cache
invalidateCache in interface Cache<Path,V>public void invalidateCache(Path path)
Cache
invalidateCache in interface Cache<Path,V>path - The cache entry keypublic Set<Path> getKeys()
|
Guvnor - Services API 6.0.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||