|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.juel.Cache
public final class Cache
Simple (thread-safe) LRU cache. After the cache size reached a certain limit, the least recently used entry is removed, when adding a new entry.
| Constructor Summary | |
|---|---|
Cache(int size)
Constructor. |
|
Cache(int size,
Map<String,Tree> secondary)
Constructor. |
|
| Method Summary | |
|---|---|
Tree |
get(String expression)
Lookup tree |
void |
put(String expression,
Tree tree)
Cache tree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cache(int size)
WeakHashMap as secondary map.
size - maximum primary cache size
public Cache(int size,
Map<String,Tree> secondary)
size - maximum primary cache sizesecondary - the secondary map (may be null)| Method Detail |
|---|
public Tree get(String expression)
TreeCache
get in interface TreeCache
public void put(String expression,
Tree tree)
TreeCache
put in interface TreeCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||