Package org.camunda.bpm.impl.juel
Class Cache
java.lang.Object
org.camunda.bpm.impl.juel.Cache
- All Implemented Interfaces:
- TreeCache
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.
- Author:
- Christoph Beck
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
Cachepublic Cache(int size) Constructor. Use aWeakHashMapas secondary map.- Parameters:
- size- maximum primary cache size
 
- 
CacheConstructor. If the least recently used entry is removed from the primary cache, it is added to the secondary map.- Parameters:
- size- maximum primary cache size
- secondary- the secondary map (may be- null)
 
 
- 
- 
Method Details