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 Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
Cache
public Cache(int size) Constructor. Use aWeakHashMapas secondary map.- Parameters:
 size- maximum primary cache size
 - 
Cache
Constructor. If the least recently used entry is removed from the primary cache, it is added to the secondary map.- Parameters:
 size- maximum primary cache sizesecondary- the secondary map (may benull)
 
 - 
 - 
Method Details